mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Stop asuming a default value of NIL means there's no default
This commit is contained in:
@@ -38,7 +38,7 @@ class PropertyUtils {
|
||||
public:
|
||||
static bool is_property_value_different(const Variant &p_a, const Variant &p_b);
|
||||
// Gets the most pure default value, the one that would be set when the node has just been instantiated
|
||||
static Variant get_property_default_value(const Object *p_object, const StringName &p_property, const Vector<SceneState::PackState> *p_states_stack_cache = nullptr, bool p_update_exports = false, const Node *p_owner = nullptr, bool *r_is_class_default = nullptr);
|
||||
static Variant get_property_default_value(const Object *p_object, const StringName &p_property, bool *r_is_valid = nullptr, const Vector<SceneState::PackState> *p_states_stack_cache = nullptr, bool p_update_exports = false, const Node *p_owner = nullptr, bool *r_is_class_default = nullptr);
|
||||
|
||||
// Gets the instance/inheritance states of this node, in order of precedence,
|
||||
// that is, from the topmost (the most able to override values) to the lowermost
|
||||
|
||||
Reference in New Issue
Block a user