From b457b8ac89c66f6ee7c01d988e9ac34aa0f0e74a Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 20 Jun 2016 17:09:53 -0300 Subject: [PATCH] Fix error storing path for children of instanced nodes in .tscn, fixes #4320 fixes #4579 fixes #4580 (cherry picked from commit 6bdd17f07c37db678f1d4e915cf121ad085096d4) --- scene/resources/packed_scene.cpp | 3 +-- scene/resources/scene_format_text.cpp | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp index 82829f1cc30..155e6012d53 100644 --- a/scene/resources/packed_scene.cpp +++ b/scene/resources/packed_scene.cpp @@ -1413,8 +1413,7 @@ NodePath SceneState::get_node_path(int p_idx,bool p_for_parent) const { } } - for(int i=0;i=0;i--) { sub_path.insert(0,base_path.get_name(i)); } diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp index f9f7f7807d8..ba328c4aa42 100644 --- a/scene/resources/scene_format_text.cpp +++ b/scene/resources/scene_format_text.cpp @@ -1292,8 +1292,6 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path,const RES& p_re Vector groups = state->get_node_groups(i); - if (instance.is_valid()) - print_line("for path "+String(path)+" instance "+instance->get_path()); String header="[node"; header+=" name=\""+String(name)+"\"";