summaryrefslogtreecommitdiff
path: root/tests/core/object
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2022-08-12 21:43:14 +0300
committerYuri Sizov <yuris@humnom.net>2022-08-18 00:03:53 +0300
commit980f5f32f492ad7e55915f37a6104789d43c89e1 (patch)
tree4636e77949b93decb9c2fe2fbb950d19db2d9ab1 /tests/core/object
parentdbd15243621ec595742b18abc4c26f3cb2e00f3d (diff)
Make `property_*_revert` methods multilevel and expose them for scripting
Diffstat (limited to 'tests/core/object')
-rw-r--r--tests/core/object/test_object.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/core/object/test_object.h b/tests/core/object/test_object.h
index 88a3e4ccad..f5c5de7fdf 100644
--- a/tests/core/object/test_object.h
+++ b/tests/core/object/test_object.h
@@ -82,6 +82,12 @@ public:
Variant::Type get_property_type(const StringName &p_name, bool *r_is_valid) const override {
return Variant::PACKED_FLOAT32_ARRAY;
}
+ bool property_can_revert(const StringName &p_name) const override {
+ return false;
+ };
+ bool property_get_revert(const StringName &p_name, Variant &r_ret) const override {
+ return false;
+ };
void get_method_list(List<MethodInfo> *p_list) const override {
}
bool has_method(const StringName &p_method) const override {