aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_node.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-10-17 20:55:12 -0300
committerJuan Linietsky2015-10-17 20:55:12 -0300
commit884d5a0f41032a9c5c793577b82998998b3f87a0 (patch)
tree1a2463810e8d93157555a5635c9d163e3f03173c /tools/editor/editor_node.cpp
parentfba1842b111420d75cfabc9dc4f240965cb085fe (diff)
downloadgodot-884d5a0f41032a9c5c793577b82998998b3f87a0.tar.gz
godot-884d5a0f41032a9c5c793577b82998998b3f87a0.tar.zst
godot-884d5a0f41032a9c5c793577b82998998b3f87a0.zip
-remove path after inheriting, fixes #2616
Diffstat (limited to '')
-rw-r--r--tools/editor/editor_node.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp
index f007e9549..34e251079 100644
--- a/tools/editor/editor_node.cpp
+++ b/tools/editor/editor_node.cpp
@@ -3452,6 +3452,9 @@ Error EditorNode::load_scene(const String& p_scene, bool p_ignore_broken_deps,bo
Ref<SceneState> state = sdata->get_state();
state->set_path(lpath);
new_scene->set_scene_inherited_state(state);
+ new_scene->set_filename(String());
+ if (new_scene->get_scene_instance_state().is_valid())
+ new_scene->get_scene_instance_state()->set_path(String());
}