Add default paramater for AnimationNode as super class
This commit is contained in:
parent
d59994688c
commit
64e015cb65
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue