From 980f5f32f492ad7e55915f37a6104789d43c89e1 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Fri, 12 Aug 2022 21:43:14 +0300 Subject: Make `property_*_revert` methods multilevel and expose them for scripting --- tests/core/object/test_object.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/core') 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 *p_list) const override { } bool has_method(const StringName &p_method) const override { -- cgit v1.2.3