From ee2269ba550437d8eccda4eaede5ac06e0f766ee Mon Sep 17 00:00:00 2001 From: Brandon Withrow Date: Fri, 6 Jan 2017 14:36:41 -0800 Subject: [PATCH] Code Cleanup --- .gitignore | 5 +- Lottie/Lottie/LAAnimationView.m | 6 +-- .../xcdebugger/Breakpoints_v2.xcbkptlist | 47 ------------------ .../xcdebugger/Breakpoints_v2.xcbkptlist | 49 ------------------- 4 files changed, 4 insertions(+), 103 deletions(-) delete mode 100644 LottieExamples.xcworkspace/xcuserdata/brandon_withrow.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist delete mode 100644 LottieExamples.xcworkspace/xcuserdata/brandonwithrow.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist diff --git a/.gitignore b/.gitignore index 1028b855bd..6e80b728ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -LotteExamples.xcworkspace/xcuserdata/ -UserInterfaceState.xcuserstate \ No newline at end of file +LottieExamples.xcworkspace/xcuserdata/ +UserInterfaceState.xcuserstate +LottieExamples.xcworkspace/xcuserdata/brandonwithrow.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist \ No newline at end of file diff --git a/Lottie/Lottie/LAAnimationView.m b/Lottie/Lottie/LAAnimationView.m index 5d68f4ca33..537072cd38 100644 --- a/Lottie/Lottie/LAAnimationView.m +++ b/Lottie/Lottie/LAAnimationView.m @@ -207,9 +207,7 @@ const NSTimeInterval singleFrameTimeValue = 1.0 / 60.0; [self _buildSubviewsFromModel]; LAAnimationState *oldState = _animationState; _animationState = [[LAAnimationState alloc] initWithDuration:_sceneModel.timeDuration + singleFrameTimeValue layer:_animationContainer]; - - NSLog(@"Animation Loaded"); -// return; + if (restoreAnimation && oldState) { [self setLoopAnimation:oldState.loopAnimation]; [self setAnimationSpeed:oldState.animationSpeed]; @@ -218,8 +216,6 @@ const NSTimeInterval singleFrameTimeValue = 1.0 / 60.0; [self play]; } } - - } diff --git a/LottieExamples.xcworkspace/xcuserdata/brandon_withrow.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/LottieExamples.xcworkspace/xcuserdata/brandon_withrow.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist deleted file mode 100644 index f7cedbf8dc..0000000000 --- a/LottieExamples.xcworkspace/xcuserdata/brandon_withrow.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/LottieExamples.xcworkspace/xcuserdata/brandonwithrow.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/LottieExamples.xcworkspace/xcuserdata/brandonwithrow.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist deleted file mode 100644 index 6c6ff9c858..0000000000 --- a/LottieExamples.xcworkspace/xcuserdata/brandonwithrow.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - -