Avoid docks to be overriden while scanning, fixes #26359
This commit is contained in:
parent
ed37408907
commit
d8f12c4343
1 changed files with 4 additions and 2 deletions
|
@ -530,6 +530,7 @@ void EditorNode::_resources_reimported(const Vector<String> &p_resources) {
|
||||||
void EditorNode::_sources_changed(bool p_exist) {
|
void EditorNode::_sources_changed(bool p_exist) {
|
||||||
|
|
||||||
if (waiting_for_first_scan) {
|
if (waiting_for_first_scan) {
|
||||||
|
waiting_for_first_scan = false;
|
||||||
|
|
||||||
EditorResourcePreview::get_singleton()->start(); //start previes now that it's safe
|
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);
|
load_scene(defer_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() {
|
void EditorNode::_save_docks() {
|
||||||
|
|
||||||
|
if (waiting_for_first_scan) {
|
||||||
|
return; //scanning, do not touch docks
|
||||||
|
}
|
||||||
Ref<ConfigFile> config;
|
Ref<ConfigFile> config;
|
||||||
config.instance();
|
config.instance();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue