mirror of https://github.com/godotengine/godot
Fix internal resource detecting when pasting nodes
This commit is contained in:
parent
e7ab3a4132
commit
6146d95a9d
|
|
@ -2921,7 +2921,7 @@ void SceneTreeDock::_create_remap_for_node(Node *p_node, Map<RES, RES> &r_remap)
|
||||||
if (v.is_ref()) {
|
if (v.is_ref()) {
|
||||||
RES res = v;
|
RES res = v;
|
||||||
if (res.is_valid()) {
|
if (res.is_valid()) {
|
||||||
if (res->get_path() == "" && !r_remap.has(res)) {
|
if ((res->get_path() == "" || res->get_path().find("::") > -1) && !r_remap.has(res)) {
|
||||||
_create_remap_for_resource(res, r_remap);
|
_create_remap_for_resource(res, r_remap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2948,7 +2948,7 @@ void SceneTreeDock::_create_remap_for_resource(RES p_resource, Map<RES, RES> &r_
|
||||||
if (v.is_ref()) {
|
if (v.is_ref()) {
|
||||||
RES res = v;
|
RES res = v;
|
||||||
if (res.is_valid()) {
|
if (res.is_valid()) {
|
||||||
if (res->get_path() == "" && !r_remap.has(res)) {
|
if ((res->get_path() == "" || res->get_path().find("::") > -1) && !r_remap.has(res)) {
|
||||||
_create_remap_for_resource(res, r_remap);
|
_create_remap_for_resource(res, r_remap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue