summaryrefslogtreecommitdiffstats
path: root/editor/editor_inspector.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-05-19 00:17:34 +0200
committerkobewi <kobewi4e@gmail.com>2024-06-03 13:10:23 +0200
commitbe111004dd012850f2050a2453b8f88c4ef5b10c (patch)
treeea59fdd4a357112a559bd08edba9d4263a29024a /editor/editor_inspector.cpp
parent0d11108a01ca5017e055e498c579a271f3153ee1 (diff)
downloadredot-engine-be111004dd012850f2050a2453b8f88c4ef5b10c.tar.gz
Fix default NodePaths saved in scene
Diffstat (limited to 'editor/editor_inspector.cpp')
-rw-r--r--editor/editor_inspector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index c1ee2ef0e0..80e2302e91 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -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 {