You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a set of actors added to a renderer, and I attempt to remove them all, all but the last of them is removed. This is different from normal VTK behaviour, which allows all to be removed.
To Reproduce
Using the RemoveActor.py script below, do:
python RemoveActor.py
You can use a and r to add and remove actors. With the normal VTK rendering, note how you can remove the last one.
Then, do
python RemoveActor.py --use-trame
Use the "Add" and "Remove" buttons. Here, when you attempt to remove the last actor, it does not. Interestingly, the display also seems to freeze at this point - dragging with the mouse does not cause rotation, almost as if it thinks there is nothing to update. However, on adding another actor again, you will now have two items than can be rotated as normal.
The local view has a limitation where at least 1 actor needs to remain. Hence the issue you are seeing.
It has to do with some synchronization logic we currently have. One workaround is to keep an actor visible with an empty polydata or something. HTH
Describe the bug
If I have a set of actors added to a renderer, and I attempt to remove them all, all but the last of them is removed. This is different from normal VTK behaviour, which allows all to be removed.
To Reproduce
Using the
RemoveActor.py
script below, do:You can use
a
andr
to add and remove actors. With the normal VTK rendering, note how you can remove the last one.Then, do
Use the "Add" and "Remove" buttons. Here, when you attempt to remove the last actor, it does not. Interestingly, the display also seems to freeze at this point - dragging with the mouse does not cause rotation, almost as if it thinks there is nothing to update. However, on adding another actor again, you will now have two items than can be rotated as normal.
Code
Expected behavior
The code should behave the same under trame as normally.
Platform:
I assuming all platforms are affected.
Device:
OS:
Browsers Affected:
The text was updated successfully, but these errors were encountered: