Files
godot/editor/scene/2d
Filipe Abreu 106bbaa2e8 Fix #116636: Undoing terrain set move duplicates terrain in second set
Undoing a terrain set move could corrupt terrain data where a
terrain from the first set appears duplicated in the second set.

This happens because UndoRedo restores terrain properties without
clearing the existing terrain container first, causing the previous
state to be overlaid on top of the current one.

Fix this by clearing the terrains in the affected terrain
sets before restoring their properties during undo.
This ensures the terrain container is rebuilt from the
saved properties instead of merging with the current state.
2026-03-23 14:56:26 +00:00
..