Fix property revert logic in the sectioned inspector

Co-authored-by: derammo <817160+derammo@users.noreply.github.com>
This commit is contained in:
Yuri Sizov 2022-09-02 21:15:04 +03:00
parent 3fe3c4399b
commit 74fc44a242

View file

@ -113,18 +113,13 @@ class SectionedInspectorFilter : public Object {
} }
} }
bool property_can_revert(const StringName &p_name) { bool _property_can_revert(const StringName &p_name) const {
return edited->property_can_revert(section + "/" + p_name); return edited->property_can_revert(section + "/" + p_name);
} }
Variant property_get_revert(const StringName &p_name) { bool _property_get_revert(const StringName &p_name, Variant &r_property) const {
return edited->property_get_revert(section + "/" + p_name); r_property = edited->property_get_revert(section + "/" + p_name);
} return true;
protected:
static void _bind_methods() {
ClassDB::bind_method("property_can_revert", &SectionedInspectorFilter::property_can_revert);
ClassDB::bind_method("property_get_revert", &SectionedInspectorFilter::property_get_revert);
} }
public: public: