diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index 6f72a42a751..993ebcdcaa7 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -52,6 +52,9 @@ void AnimationNode::get_parameter_list(List *r_list) const { Variant AnimationNode::get_parameter_default_value(const StringName &p_parameter) const { Variant ret; + if (p_parameter == current_length || p_parameter == current_position || p_parameter == current_delta) { + return 0.0; + } GDVIRTUAL_CALL(_get_parameter_default_value, p_parameter, ret); return ret; }