From 64e015cb652fd00607ec63ff3221ae4c9286d42b Mon Sep 17 00:00:00 2001 From: "Silc Lizard (Tokage) Renew" <61938263+TokageItLab@users.noreply.github.com> Date: Fri, 6 Jun 2025 02:23:59 +0900 Subject: [PATCH] Add default paramater for AnimationNode as super class --- scene/animation/animation_tree.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index 6f72a42a75..993ebcdcaa 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; }