Scenes, hidden entities and undo
-
To reproduce the bug consider the following situation:
I have a model representing two cubes.
The model has two scenes: scene 1 shows the cubes, scene 2 hides cube 2.
In scene 1 I draw a rectangle on a corner of cube 2 and I use push/pull.
I then use undo to undo the push/pull operation and the rectangle.Scene 2 does not return to its previous state:
this is not the behaviour I expect from undo.
Is this "bug" already known ?
I didn't find it in the forum.Thx,
guzman. -
I don't know if I am quite right, but I understand that Undo in SU applies only to modeling operations, not the display. This might explain the behaviour you are experiencing.
Did you look at your scene 2 after you did your push-pull operation? That would maybe also also not look as you expected. All the new geometry you did generate (the rectangle and the new faces and edges created by the pushpull) are visible there. That is also how SU behaves. New geometry is by default visible in all scenes, and to hide it, you have to hide it in every scene separately, and then update the scene.
I would overcome this by isolating the cubes by making groups of them, and hiding the groups as needed. After that, any edits done within a group would not affect its visibility in other scenes.
Anssi
-
Thanks for your answer,
I undertand what you say but some aspects remain unclear to me:if Undo in SU applies only to modeling operations, after undoing modeling operations I wouold expect to have the same entities I had before the modeling operations (the exact same entities) and I would therefore expect to have the same display options on scenes.
It looks instead as if after undoing modeling operations you obtain new entities that have the same positions of the ones you had before the modeling operation, but since they are new entities you loose display options.I understand that the contract of Undo does not require it to set display options to their previous states and I understand that the are many workarounds, but it seemed to me a strange behaviour.
Thanks for your answers.
-
Guzman,
Why don't you attach the ,skp file? I cannot visualize the problem.
-
I have a model with 2 cubes (or parallelepidi)
In scene 2 the cube on the right is hidden
In scene 1 I modify the model as follows
I then use undo to undo this operation.
The model returns to its previous state, but the display options of scene 2 do change: here's scene 2 after undoing modeling operations:I understand that undo does not have to set display options to their previous states, but this behaviour is somewhat annoying.
I hope the issue is clear (and sorry for english mistakes).
guzman.
-
Hi Guzman,
Note that any change in the geometry will be unhidden by default. Could you do one step more in the undo operation to see if everything disappears to the unhidden state? It seems now that you started the modification by drawing something on that top edge but haven't undone this very first step.
-
I understand that any change in the geometry will be unhidden by default,
but after undoing every step some entities do not return to their hidden state.
I tried many times and I always get this behaviour even thow the unhidden entities
in the resulting scene may change.thanks,
Advertisement