From 43a130dabe2224f961ee129177b5883c4433cf4f Mon Sep 17 00:00:00 2001 From: David Rowe Date: Tue, 7 Apr 2015 14:02:42 -0700 Subject: [PATCH] Fix Stop button not working at the end of a non-looped animation --- libraries/render-utils/src/AnimationHandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/render-utils/src/AnimationHandle.cpp b/libraries/render-utils/src/AnimationHandle.cpp index 64e2bf28b9..1cb3d4654f 100644 --- a/libraries/render-utils/src/AnimationHandle.cpp +++ b/libraries/render-utils/src/AnimationHandle.cpp @@ -64,8 +64,8 @@ void AnimationHandle::setRunning(bool running) { if (running) { // move back to the beginning setFrameIndex(getFirstFrame()); + return; } - return; } _animationLoop.setRunning(running); if (isRunning()) {