summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorJoão Pedro São Gregorio Silva <pedrosgregorio9@gmail.com>2022-07-20 08:44:08 -0300
committerRémi Verschelde <remi@verschelde.fr>2022-07-21 16:36:52 +0200
commit324b4884d6cbb6c5aeee5456f56dbed8496c66b0 (patch)
tree9c317d9917227d6ffbcd2a2aae69711b4fb404d2 /scene/animation
parentea3d355f0a75ec816125acff0c2fd036814f29eb (diff)
Fix incorrect expression base in `AnimationNodeStateMachinePlayback::_check_advance_condition`
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_node_state_machine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_node_state_machine.cpp b/scene/animation/animation_node_state_machine.cpp
index fe08e849a1..fbe23bedad 100644
--- a/scene/animation/animation_node_state_machine.cpp
+++ b/scene/animation/animation_node_state_machine.cpp
@@ -630,7 +630,7 @@ bool AnimationNodeStateMachinePlayback::_check_advance_condition(const Ref<Anima
Node *expression_base = tree_base->get_node_or_null(advance_expression_base_node_path);
if (expression_base) {
Ref<Expression> exp = transition->expression;
- bool ret = exp->execute(Array(), tree_base, false, Engine::get_singleton()->is_editor_hint()); // Avoids allowing the user to crash the system with an expression by only allowing const calls.
+ bool ret = exp->execute(Array(), expression_base, false, Engine::get_singleton()->is_editor_hint()); // Avoids allowing the user to crash the system with an expression by only allowing const calls.
if (!exp->has_execute_failed()) {
if (ret) {
return true;