Merge pull request #18 from airbnb/btw/3drotationcrash

Fix crash for 3d rotation values
This commit is contained in:
Brandon Withrow
2017-02-02 14:54:55 -08:00
committed by GitHub

View File

@@ -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) {