You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix default NodePaths saved in scene
This commit is contained in:
@@ -816,7 +816,7 @@ Error SceneState::_parse_node(Node *p_owner, Node *p_node, int p_parent_idx, Has
|
||||
bool is_valid_default = false;
|
||||
Variant default_value = PropertyUtils::get_property_default_value(p_node, name, &is_valid_default, &states_stack, true);
|
||||
|
||||
if (is_valid_default && !PropertyUtils::is_property_value_different(value, default_value)) {
|
||||
if (is_valid_default && !PropertyUtils::is_property_value_different(p_node, value, default_value)) {
|
||||
if (value.get_type() == Variant::ARRAY && has_local_resource(value)) {
|
||||
// Save anyway
|
||||
} else if (value.get_type() == Variant::DICTIONARY) {
|
||||
|
||||
Reference in New Issue
Block a user