diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2021-12-11 14:03:48 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2021-12-11 14:03:48 +0100 |
commit | 18663aa305ef1ed5c87efd74425146112322b91f (patch) | |
tree | bfbe62692d1b878aaf1364c69743ddb0b18e4aa6 /editor/editor_inspector.h | |
parent | 092a2861277e7df87aec10516d713d0bf4adba79 (diff) | |
download | redot-engine-18663aa305ef1ed5c87efd74425146112322b91f.tar.gz |
Stop asuming a default value of NIL means there's no default
Diffstat (limited to 'editor/editor_inspector.h')
-rw-r--r-- | editor/editor_inspector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_inspector.h b/editor/editor_inspector.h index f2dfe32f82..d247978649 100644 --- a/editor/editor_inspector.h +++ b/editor/editor_inspector.h @@ -46,7 +46,7 @@ public: static bool get_instantiated_node_original_property(Node *p_node, const StringName &p_prop, Variant &value, bool p_check_class_default = true); static bool is_node_property_different(Node *p_node, const Variant &p_current, const Variant &p_orig); static bool is_property_value_different(const Variant &p_a, const Variant &p_b); - static Variant get_property_revert_value(Object *p_object, const StringName &p_property); + static Variant get_property_revert_value(Object *p_object, const StringName &p_property, bool *r_is_valid); static bool can_property_revert(Object *p_object, const StringName &p_property); }; |