Fix missing resource properties being dropped on save

This commit is contained in:
nikitalita
2024-03-11 18:57:17 -07:00
parent 92e51fca72
commit 95d2909474
5 changed files with 28 additions and 21 deletions

View File

@ -786,7 +786,7 @@ Error SceneState::_parse_node(Node *p_owner, Node *p_node, int p_parent_idx, Has
Dictionary missing_resource_properties = p_node->get_meta(META_MISSING_RESOURCES, Dictionary());
for (const PropertyInfo &E : plist) {
if (!(E.usage & PROPERTY_USAGE_STORAGE)) {
if (!(E.usage & PROPERTY_USAGE_STORAGE) && !missing_resource_properties.has(E.name)) {
continue;
}