Browse Source

Remove duplicate assignment of AnimationNode::State.valid

In AnimationTree::_process_graph, the State.valid variable is set to true.
A few lines later, it's set again. Probably a copy/paste mistake. This
commit removes the second assignment.
Andreas Raddau 3 years ago
parent
commit
0e4fd72ae6
1 changed files with 0 additions and 1 deletions
  1. 0 1
      scene/animation/animation_tree.cpp

+ 0 - 1
scene/animation/animation_tree.cpp

@@ -919,7 +919,6 @@ void AnimationTree::_process_graph(double p_delta) {
 		state.valid = true;
 		state.valid = true;
 		state.invalid_reasons = "";
 		state.invalid_reasons = "";
 		state.animation_states.clear(); //will need to be re-created
 		state.animation_states.clear(); //will need to be re-created
-		state.valid = true;
 		state.player = player;
 		state.player = player;
 		state.last_pass = process_pass;
 		state.last_pass = process_pass;
 		state.tree = this;
 		state.tree = this;