diff options
author | Andreas Raddau <raddau@robopoets.com> | 2022-06-18 11:59:19 +0200 |
---|---|---|
committer | Andreas Raddau <raddau@robopoets.com> | 2022-06-18 11:59:19 +0200 |
commit | 0e4fd72ae62ef2d3b724f68f3d94a5f7c90017f2 (patch) | |
tree | bebf980dd7cb2f0425eed36d5ffb9a7465767333 | |
parent | 0daa868ab432d71442b76fa9bcfe3723abfc8718 (diff) |
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.
-rw-r--r-- | scene/animation/animation_tree.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index d34e8db093..136285c4dc 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -919,7 +919,6 @@ void AnimationTree::_process_graph(double p_delta) { state.valid = true; state.invalid_reasons = ""; state.animation_states.clear(); //will need to be re-created - state.valid = true; state.player = player; state.last_pass = process_pass; state.tree = this; |