diff options
author | kobewi <kobewi4e@gmail.com> | 2024-04-02 16:17:14 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-04-02 16:17:14 +0200 |
commit | 594567e1e080ff54d7efa07a2425bd6fe1cdb614 (patch) | |
tree | 348413571b4ec2f8bb556d9949694eaacb1cc52f /editor/editor_interface.cpp | |
parent | 29b3d9e9e538f0aa8effc8ad8bf19a2915292a89 (diff) | |
download | redot-engine-594567e1e080ff54d7efa07a2425bd6fe1cdb614.tar.gz |
Update scene tabs after marking as unsaved
Diffstat (limited to 'editor/editor_interface.cpp')
-rw-r--r-- | editor/editor_interface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_interface.cpp b/editor/editor_interface.cpp index 35e846b344..46113ab2cb 100644 --- a/editor/editor_interface.cpp +++ b/editor/editor_interface.cpp @@ -39,6 +39,7 @@ #include "editor/editor_undo_redo_manager.h" #include "editor/filesystem_dock.h" #include "editor/gui/editor_run_bar.h" +#include "editor/gui/editor_scene_tabs.h" #include "editor/gui/scene_tree_editor.h" #include "editor/inspector_dock.h" #include "editor/plugins/node_3d_editor_plugin.h" @@ -452,6 +453,7 @@ void EditorInterface::save_scene_as(const String &p_scene, bool p_with_preview) void EditorInterface::mark_scene_as_unsaved() { EditorUndoRedoManager::get_singleton()->set_history_as_unsaved(EditorNode::get_editor_data().get_current_edited_scene_history_id()); + EditorSceneTabs::get_singleton()->update_scene_tabs(); } void EditorInterface::save_all_scenes() { |