summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-07 15:13:45 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-07 15:13:45 +0100
commit489d26e96e6f1b8d935a2e8cc879d67a3e655743 (patch)
tree42ec4c3af6ceb2cd27b6f50f5b8871818d649a8d /editor
parent0a3f66471ed79d9b1852150cb059f20f841d46d9 (diff)
parent05993e8a354013241580ccefed07fe9aaed0f3d4 (diff)
Merge pull request #69573 from KoBeWi/our_hero_call-deferred-man
Fix dependency reload triggered too early
Diffstat (limited to 'editor')
-rw-r--r--editor/filesystem_dock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index 8df5808b11..6316a7f545 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -1414,7 +1414,7 @@ void FileSystemDock::_update_dependencies_after_move(const HashMap<String, Strin
Error err = ResourceLoader::rename_dependencies(file, p_renames);
if (err == OK) {
if (ResourceLoader::get_resource_type(file) == "PackedScene") {
- EditorNode::get_singleton()->reload_scene(file);
+ callable_mp(EditorNode::get_singleton(), &EditorNode::reload_scene).bind(file).call_deferred();
}
} else {
EditorNode::get_singleton()->add_io_error(TTR("Unable to update dependencies:") + "\n" + remaps[i] + "\n");