summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_editor.cpp
diff options
context:
space:
mode:
author风青山 <idleman@yeah.net>2023-10-13 16:38:33 +0800
committer风青山 <idleman@yeah.net>2023-10-17 22:52:44 +0800
commit225a5e225f83296144bc5d4351da9178c61e8fa2 (patch)
tree75b737c3a4f0274e023f1c70070ce8d8d2e5a1bb /modules/gdscript/gdscript_editor.cpp
parentee118e7ffd97f478de73f4b344fddc0203ef7cca (diff)
downloadredot-engine-225a5e225f83296144bc5d4351da9178c61e8fa2.tar.gz
Fix saving wrong edited scene state when switching scene tabs
When creating a new scene, the scene tab will actually switch to the newly created one. Also worth noting that switching scene tabs saves state (by `save_edited_scene_state`). When trying New Scene again, the previously empty scene tab will be removed. So the correct logic is: switch the tab save state first, and then remove the previous empty scene tab. To prevent `current_edited_scene` from being incorrect when saving state.
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
0 files changed, 0 insertions, 0 deletions