diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-25 09:20:01 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-25 09:20:01 +0100 |
commit | 1f98ed6016138b74290adba1d2414039314a910c (patch) | |
tree | 0defe25f1d079ba066edde7ae5d5e3b9b70da022 | |
parent | f710516babec6c665cda7f35cf175a7ef6d03a07 (diff) | |
parent | fc74cbe835753748d4d22d8d4c6d38e39ee43148 (diff) |
Merge pull request #72011 from SaracenOne/inherited_scene_fix
Fix path for unsaved inherited scenes
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 58cd592404..173cbc6893 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3902,7 +3902,7 @@ Error EditorNode::load_scene(const String &p_scene, bool p_ignore_broken_deps, b Ref<SceneState> state = sdata->get_state(); state->set_path(lpath); new_scene->set_scene_inherited_state(state); - new_scene->set_scene_file_path(lpath); + new_scene->set_scene_file_path(String()); } new_scene->set_scene_instance_state(Ref<SceneState>()); @@ -6113,6 +6113,7 @@ void EditorNode::reload_instances_with_path_in_edited_scenes(const String &p_ins Ref<SceneState> state = current_packed_scene->get_state(); state->set_path(current_packed_scene->get_path()); instantiated_node->set_scene_inherited_state(state); + instantiated_node->set_scene_file_path(String()); } editor_data.set_edited_scene_root(instantiated_node); current_edited_scene = instantiated_node; |