Skip to content

Commit

Permalink
Simplified condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Riordan-DC committed Jan 20, 2024
1 parent 6e88232 commit ae65ce4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scene/animation/animation_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,7 @@ float AnimationNode::_blend_node(const StringName &p_subpath, const Vector<Strin
// this is a way to make it pass down the tree. Without this
// the next node, which will often set use_blend to true, will
// override our request for use_blend false.
if (p_use_blend) {
// use self
p_node->use_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();
Expand Down

0 comments on commit ae65ce4

Please sign in to comment.