Merge pull request #63238 from joaopedrosgs/patch-1
Fix incorrect expression base in `AnimationNodeStateMachinePlayback::_check_advance_condition`
This commit is contained in:
commit
b3df27526a
@ -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);
|
Node *expression_base = tree_base->get_node_or_null(advance_expression_base_node_path);
|
||||||
if (expression_base) {
|
if (expression_base) {
|
||||||
Ref<Expression> exp = transition->expression;
|
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 (!exp->has_execute_failed()) {
|
||||||
if (ret) {
|
if (ret) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user