summaryrefslogtreecommitdiff
path: root/scene/animation/animation_blend_tree.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-11-05 09:05:03 +0100
committerGitHub <noreply@github.com>2018-11-05 09:05:03 +0100
commitfcd761e88985fb243717c159bce7fa40497a8924 (patch)
tree927b9c1b1db4739ae17c30b810dcae357081f8d6 /scene/animation/animation_blend_tree.cpp
parent935537c53191e7430a77949eab6b1e50841c19bd (diff)
parent71df4caf8fe4e834c2f175e060b3a896d4d5b70e (diff)
Merge pull request #23519 from Rubonnek/remove-unnecessary-assignments
Removed unnecessary assignments
Diffstat (limited to 'scene/animation/animation_blend_tree.cpp')
-rw-r--r--scene/animation/animation_blend_tree.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/scene/animation/animation_blend_tree.cpp b/scene/animation/animation_blend_tree.cpp
index b85d4e541e..b037596fda 100644
--- a/scene/animation/animation_blend_tree.cpp
+++ b/scene/animation/animation_blend_tree.cpp
@@ -266,7 +266,6 @@ float AnimationNodeOneShot::process(float p_time, bool p_seek) {
if (do_start) {
remaining = os_rem;
- do_start = false;
}
if (!p_seek) {
@@ -770,8 +769,6 @@ float AnimationNodeTransition::process(float p_time, bool p_seek) {
rem = blend_input(current, p_time, p_seek, 1.0 - blend, FILTER_IGNORE, false);
}
- switched = false;
-
if (p_seek) { // don't seek prev animation
blend_input(prev, 0, false, blend, FILTER_IGNORE, false);
time = p_time;