1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fix default NodePaths saved in scene

This commit is contained in:
kobewi
2024-05-19 00:17:34 +02:00
parent 0d11108a01
commit be111004dd
7 changed files with 91 additions and 12 deletions

View File

@@ -480,7 +480,7 @@ bool EditorPropertyRevert::can_property_revert(Object *p_object, const StringNam
return false;
}
Variant current_value = p_custom_current_value ? *p_custom_current_value : p_object->get(p_property);
return PropertyUtils::is_property_value_different(current_value, revert_value);
return PropertyUtils::is_property_value_different(p_object, current_value, revert_value);
}
StringName EditorProperty::_get_revert_property() const {