summaryrefslogtreecommitdiff
path: root/scene/resources/material.h
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2022-08-19 20:41:41 +0300
committerGitHub <noreply@github.com>2022-08-19 20:41:41 +0300
commit7895a66cf21348920298c83968d6c5399d8339cf (patch)
tree6b74c4e351c6dfa39c3d56c08a4c58613900141d /scene/resources/material.h
parent35cfaafda8073f700c9d2fe42a43d3d81eaaea67 (diff)
parent980f5f32f492ad7e55915f37a6104789d43c89e1 (diff)
Merge pull request #64334 from YuriSizov/core-bind-property-revert-methods
Make `property_*_revert` methods multilevel and expose them for scripting
Diffstat (limited to 'scene/resources/material.h')
-rw-r--r--scene/resources/material.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/material.h b/scene/resources/material.h
index ca5b17dd07..6049671582 100644
--- a/scene/resources/material.h
+++ b/scene/resources/material.h
@@ -99,8 +99,8 @@ protected:
bool _set(const StringName &p_name, const Variant &p_value);
bool _get(const StringName &p_name, Variant &r_ret) const;
void _get_property_list(List<PropertyInfo> *p_list) const;
- bool property_can_revert(const String &p_name);
- Variant property_get_revert(const String &p_name);
+ bool _property_can_revert(const StringName &p_name) const;
+ bool _property_get_revert(const StringName &p_name, Variant &r_property) const;
static void _bind_methods();