Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset should dispose all decorations #4652

Closed
Tyriar opened this issue Aug 9, 2023 · 2 comments · Fixed by #4671
Closed

reset should dispose all decorations #4652

Tyriar opened this issue Aug 9, 2023 · 2 comments · Fixed by #4671
Assignees
Labels
area/decorations type/bug Something is misbehaving
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Aug 9, 2023

From: #4651 (comment)

I also noted an issue with decorations/selections from the search addon - if I have selections in the viewport and call reset the decoration boxes get not cleared, but stick to the viewport forever. This happens with all renderers (prolly not a rendering but a state holding issue in the decorations?) and cannot be undone by refreshing or clearing the selection:

Image

@Tyriar Tyriar added the type/bug Something is misbehaving label Aug 13, 2023
@Tyriar Tyriar added this to the 5.3.0 milestone Aug 13, 2023
@Tyriar Tyriar self-assigned this Aug 13, 2023
@Tyriar
Copy link
Member Author

Tyriar commented Aug 13, 2023

Something is pretty broken with decoration/marker lifecycle, the numbers below are the mark ids:

image

Still investigating...

@Tyriar
Copy link
Member Author

Tyriar commented Aug 13, 2023

Turns out this is related to SortedList.values() not correctly iterating as elements get removed from _array while it's iterating, so 1/2 the elements get skipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/decorations type/bug Something is misbehaving
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant