summaryrefslogtreecommitdiff
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2019-02-27 18:14:24 -0300
committerJuan Linietsky <juan@godotengine.org>2019-02-27 18:14:59 -0300
commitd8f12c4343f38616dcefede678f6a7c8036d85de (patch)
tree6c3573fa5bd8dfc0ea65e7747b5809543bbf7e15 /editor/editor_node.cpp
parented37408907ce63e2f1ea2a5b29dbf59a48a34e03 (diff)
Avoid docks to be overriden while scanning, fixes #26359
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 67fba4f278..09117ace90 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -530,6 +530,7 @@ void EditorNode::_resources_reimported(const Vector<String> &p_resources) {
void EditorNode::_sources_changed(bool p_exist) {
if (waiting_for_first_scan) {
+ waiting_for_first_scan = false;
EditorResourcePreview::get_singleton()->start(); //start previes now that it's safe
@@ -540,8 +541,6 @@ void EditorNode::_sources_changed(bool p_exist) {
load_scene(defer_load_scene);
defer_load_scene = "";
}
-
- waiting_for_first_scan = false;
}
}
@@ -3653,6 +3652,9 @@ void EditorNode::_dock_select_draw() {
void EditorNode::_save_docks() {
+ if (waiting_for_first_scan) {
+ return; //scanning, do not touch docks
+ }
Ref<ConfigFile> config;
config.instance();