From 6b365d72272af28ed09c48c1156b0e1a4cd4f01c Mon Sep 17 00:00:00 2001 From: Brandon Withrow Date: Thu, 2 Feb 2017 14:50:57 -0800 Subject: [PATCH] Fix crash for 3d rotation values --- lottie-ios/Classes/LALayer.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lottie-ios/Classes/LALayer.m b/lottie-ios/Classes/LALayer.m index 07e4f6284f..048fd7f1c3 100644 --- a/lottie-ios/Classes/LALayer.m +++ b/lottie-ios/Classes/LALayer.m @@ -59,6 +59,9 @@ } NSDictionary *rotation = ks[@"r"]; + if (rotation == nil) { + rotation = ks[@"rz"]; + } if (rotation) { _rotation = [[LAAnimatableNumberValue alloc] initWithNumberValues:rotation frameRate:_framerate]; [_rotation remapValueWithBlock:^CGFloat(CGFloat inValue) {