From 884d5a0f41032a9c5c793577b82998998b3f87a0 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 17 Oct 2015 20:55:12 -0300 Subject: [PATCH] -remove path after inheriting, fixes #2616 --- tools/editor/editor_node.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index f007e95494a..34e25107918 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 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()); }