From ae65ce4734bb1475776cee2e6715c1b4253dff60 Mon Sep 17 00:00:00 2001 From: Riordan Date: Sun, 21 Jan 2024 06:33:44 +1000 Subject: [PATCH] Simplified condition --- scene/animation/animation_tree.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index 116fa5509d26..27243324475e 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -190,13 +190,7 @@ float AnimationNode::_blend_node(const StringName &p_subpath, const Vectoruse_blend = this->use_blend; - } else { - // use parameter - p_node->use_blend = p_use_blend; - } + p_node->use_blend = p_use_blend && use_blend; float *blendw = p_node->blends.ptrw(); const float *blendr = blends.ptr();