Fix error storing path for children of instanced nodes in .tscn, fixes #4320 fixes #4579 fixes #4580

This commit is contained in:
Juan Linietsky 2016-06-20 17:09:53 -03:00
parent f1af0fd25c
commit 6bdd17f07c
2 changed files with 1 additions and 4 deletions

View File

@ -1413,8 +1413,7 @@ NodePath SceneState::get_node_path(int p_idx,bool p_for_parent) const {
}
}
for(int i=0;i<base_path.get_name_count();i++) {
StringName sn = base_path.get_name(i);
for(int i=base_path.get_name_count()-1;i>=0;i--) {
sub_path.insert(0,base_path.get_name(i));
}

View File

@ -1320,8 +1320,6 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path,const RES& p_re
Vector<StringName> 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)+"\"";