|
@@ -1815,7 +1815,9 @@ void EditorNode::gather_resources(const Variant &p_variant, List<Ref<Resource>>
|
|
|
r_list.push_back(res);
|
|
r_list.push_back(res);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- gather_resources(v, r_list, p_subresources, p_allow_external);
|
|
|
|
|
|
|
+ if (Object::cast_to<Node>(v) == nullptr) {
|
|
|
|
|
+ gather_resources(v, r_list, p_subresources, p_allow_external);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -1839,8 +1841,12 @@ void EditorNode::gather_resources(const Variant &p_variant, List<Ref<Resource>>
|
|
|
r_list.push_back(res_value);
|
|
r_list.push_back(res_value);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- gather_resources(kv.key, r_list, p_subresources, p_allow_external);
|
|
|
|
|
- gather_resources(kv.value, r_list, p_subresources, p_allow_external);
|
|
|
|
|
|
|
+ if (Object::cast_to<Node>(kv.key) == nullptr) {
|
|
|
|
|
+ gather_resources(kv.key, r_list, p_subresources, p_allow_external);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (Object::cast_to<Node>(kv.value) == nullptr) {
|
|
|
|
|
+ gather_resources(kv.value, r_list, p_subresources, p_allow_external);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -1855,12 +1861,10 @@ void EditorNode::gather_resources(const Variant &p_variant, List<Ref<Resource>>
|
|
|
|
|
|
|
|
Variant property_value = p_variant.get(E.name);
|
|
Variant property_value = p_variant.get(E.name);
|
|
|
Variant::Type property_type = property_value.get_type();
|
|
Variant::Type property_type = property_value.get_type();
|
|
|
-
|
|
|
|
|
if (property_type == Variant::ARRAY || property_type == Variant::DICTIONARY) {
|
|
if (property_type == Variant::ARRAY || property_type == Variant::DICTIONARY) {
|
|
|
gather_resources(property_value, r_list, p_subresources, p_allow_external);
|
|
gather_resources(property_value, r_list, p_subresources, p_allow_external);
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
Ref<Resource> res = property_value;
|
|
Ref<Resource> res = property_value;
|
|
|
if (res.is_null()) {
|
|
if (res.is_null()) {
|
|
|
continue;
|
|
continue;
|