Fix error storing path for children of instanced nodes in .tscn, fixes #4320 fixes #4579 fixes #4580
(cherry picked from commit 6bdd17f07c
)
This commit is contained in:
parent
5582d37af9
commit
b457b8ac89
|
@ -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++) {
|
for(int i=base_path.get_name_count()-1;i>=0;i--) {
|
||||||
StringName sn = base_path.get_name(i);
|
|
||||||
sub_path.insert(0,base_path.get_name(i));
|
sub_path.insert(0,base_path.get_name(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1292,8 +1292,6 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path,const RES& p_re
|
||||||
Vector<StringName> groups = state->get_node_groups(i);
|
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";
|
String header="[node";
|
||||||
header+=" name=\""+String(name)+"\"";
|
header+=" name=\""+String(name)+"\"";
|
||||||
|
|
Loading…
Reference in New Issue