diff options
author | kobewi <kobewi4e@gmail.com> | 2022-12-04 17:28:30 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-12-04 17:28:30 +0100 |
commit | 05993e8a354013241580ccefed07fe9aaed0f3d4 (patch) | |
tree | 04b8dd997dd95450247817c4b69e2879f1c8cc7c /editor | |
parent | 015dc492de33a41eaeb14c0503a6be10466fe457 (diff) |
Fix dependency reload triggered too early
Diffstat (limited to 'editor')
-rw-r--r-- | editor/filesystem_dock.cpp | 2 |
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"); |