You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #107171 from TokageItLab/fix-def-anim-node
Add default paramater for AnimationNode as super class
This commit is contained in:
@@ -52,6 +52,9 @@ void AnimationNode::get_parameter_list(List<PropertyInfo> *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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user