mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix implementation of property_can_revert() in PropertyListHelper
This commit is contained in:
parent
8bad68df1a
commit
5473c7e222
2 changed files with 2 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue