summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Trojahn <paul.trojahn@gmail.com>2019-03-01 17:20:30 +0100
committerPaul Trojahn <paul.trojahn@gmail.com>2019-03-01 18:27:37 +0100
commitf3d94cc752eccfcb833c00fa40247b35e8cf81a4 (patch)
treed864a98fe56283eea0a94c044944f512792e0410
parentb69569415f6a3c7e8d15c6f58775260eba2bc09d (diff)
Fix misleading modified status of scenes
If a scene is instanced in another scene, any changes to the first triggers _clear_undo_history in EditorNode::set_current_scene, which increments the version in UndoRedo::clear_history. This results in a modified status. Passing false to clear_history fixes this issue. Fixes #25942
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 8a9835c977..b36afaef88 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -2852,7 +2852,7 @@ bool EditorNode::is_changing_scene() const {
void EditorNode::_clear_undo_history() {
- get_undo_redo()->clear_history();
+ get_undo_redo()->clear_history(false);
}
void EditorNode::set_current_scene(int p_idx) {