Undo Fails to Track First Modification After Object Insertion

Description:

When inserting a file into any area of the workspace (except Workspace), the first modification made to the object or any of its children is not recorded in the undo stack. As a result, when pressing CTRL + Z, the engine treats the only registered action as the insertion itself and removes the entire object instead of undoing the last modification.

Additionally, when inserting multiple objects individually and modifying any one of them, pressing CTRL + Z will remove all recently inserted objects, rather than only undoing the modification made to the specific object. Each individual insertion should be treated as a individual action.

Steps to Reproduce:

  1. Insert a file into any area of the workspace (except Workspace).
  2. Modify the object or its children (e.g., rename, delete a child, adjust properties).
  3. Press CTRL + Z (or use the undo function).
  4. Observe that the entire inserted object is removed instead of undoing the modification.

Additional Observations:

  • This issue affects all first modifications after insertion (renaming, deleting a child, etc.).
  • If an object or its child is renamed twice, only the most recent rename can be undone. Attempting to undo the first rename results in the entire object being deleted.
  • The issue does not occur when performing actions within the Explorer window, where CTRL + Z functions correctly.

Expected behavior

1 Like