summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-06 11:38:31 +0100
committerGitHub <noreply@github.com>2020-02-06 11:38:31 +0100
commit40d1b0bfdb62d24d72f1f0102a7caf6f1c14e595 (patch)
tree15669ded6dbc0c09b33f13fa6105975a6156578d /scene
parentf5fa2b41df69af2d11f26f73198685d85a3bc559 (diff)
parented3a8cc83dccc0385ce92ef52f18d6bcbbd4b4af (diff)
Merge pull request #35906 from muiroc/anim_node_value_bug
Pass missing args in AnimationNode script calls
Diffstat (limited to 'scene')
-rw-r--r--scene/animation/animation_tree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp
index 618d3813ae..c28f8dc824 100644
--- a/scene/animation/animation_tree.cpp
+++ b/scene/animation/animation_tree.cpp
@@ -49,7 +49,7 @@ void AnimationNode::get_parameter_list(List<PropertyInfo> *r_list) const {
Variant AnimationNode::get_parameter_default_value(const StringName &p_parameter) const {
if (get_script_instance()) {
- return get_script_instance()->call("get_parameter_default_value");
+ return get_script_instance()->call("get_parameter_default_value", p_parameter);
}
return Variant();
}
@@ -397,7 +397,7 @@ void AnimationNode::_validate_property(PropertyInfo &property) const {
Ref<AnimationNode> AnimationNode::get_child_by_name(const StringName &p_name) {
if (get_script_instance()) {
- return get_script_instance()->call("get_child_by_name");
+ return get_script_instance()->call("get_child_by_name", p_name);
}
return Ref<AnimationNode>();
}