Fix error storing path for children of instanced nodes in .tscn, fixes #4320 fixes #4579 fixes #4580
This commit is contained in:
parent
f1af0fd25c
commit
6bdd17f07c
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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)+"\"";
|
||||
|
|
Loading…
Reference in New Issue