diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-07-20 09:50:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 09:50:01 +0200 |
commit | b4baec08cf4e623fe3caa03130fda8d366538c9e (patch) | |
tree | f702d031601d6b40123e412f4c4217b751ec5cea /scene/animation/animation_tree.cpp | |
parent | 87d8927ab026f8c66e71ca04d57c497f8d5d8b89 (diff) | |
parent | 2f9a0268ddbf07ea3cd1eed320a4270c99165de5 (diff) | |
download | redot-engine-b4baec08cf4e623fe3caa03130fda8d366538c9e.tar.gz |
Merge pull request #50206 from groud/undoredo_increase_args_count
Increase the number of arguments accepted by UndoRedo methods
Diffstat (limited to 'scene/animation/animation_tree.cpp')
-rw-r--r-- | scene/animation/animation_tree.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index ef3a8840d0..72448fc4f7 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -985,6 +985,7 @@ void AnimationTree::_process_graph(float p_delta) { int s = params.size(); + static_assert(VARIANT_ARG_MAX == 8, "This code needs to be updated if VARIANT_ARG_MAX != 8"); ERR_CONTINUE(s > VARIANT_ARG_MAX); if (can_call) { t->object->call_deferred( @@ -993,7 +994,10 @@ void AnimationTree::_process_graph(float p_delta) { s >= 2 ? params[1] : Variant(), s >= 3 ? params[2] : Variant(), s >= 4 ? params[3] : Variant(), - s >= 5 ? params[4] : Variant()); + s >= 5 ? params[4] : Variant(), + s >= 6 ? params[5] : Variant(), + s >= 7 ? params[6] : Variant(), + s >= 8 ? params[7] : Variant()); } } |