From 0e4fd72ae62ef2d3b724f68f3d94a5f7c90017f2 Mon Sep 17 00:00:00 2001 From: Andreas Raddau Date: Sat, 18 Jun 2022 11:59:19 +0200 Subject: 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. --- scene/animation/animation_tree.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'scene/animation/animation_tree.cpp') 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; -- cgit v1.2.3