Undo of event changes also reverts object name changes in scene events but not in layout or object list

Describe the bug
Undo (Ctrl-Z) of a change to events also reverts object name changes in the events but not anywhere else. This breaks all events with the object in them.

Share the complete GDevelop project showing the bug
A project would just have one object in it and not show the error so here are the steps to reproduce.
GDBug

  1. Add a sprite to a project.
  2. Add an event with the sprite in it like “Pick Random”
  3. Rename the Sprite.
  4. Make a change to the event, for example, add any action.
  5. Ctrl-Z
  6. You will now see that the event is broken because the name reverted back to the original.

Tested on the updated desktop windows and web versions.

2 Likes