From 5473c7e2224c489fde7375155d67e4470e7d1c81 Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 22 Feb 2024 13:52:12 +0100 Subject: Fix implementation of property_can_revert() in PropertyListHelper --- scene/property_list_helper.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'scene') diff --git a/scene/property_list_helper.cpp b/scene/property_list_helper.cpp index 2d3179d9fd..d9a80011b0 100644 --- a/scene/property_list_helper.cpp +++ b/scene/property_list_helper.cpp @@ -111,12 +111,7 @@ bool PropertyListHelper::property_set_value(const String &p_property, const Vari bool PropertyListHelper::property_can_revert(const String &p_property) const { int index; - const Property *property = _get_property(p_property, &index); - - if (property) { - return _call_getter(property->getter, index) != property->default_value; - } - return false; + return _get_property(p_property, &index) != nullptr; } bool PropertyListHelper::property_get_revert(const String &p_property, Variant &r_value) const { -- cgit v1.2.3