Initialize control point to CGPointZero

This commit is contained in:
Ian Gordon 2017-02-03 14:16:22 -05:00
parent fd6e34f4ba
commit 2728af2950

View File

@ -111,7 +111,8 @@
if (endPoint) { if (endPoint) {
NSArray *controlPoint1 = keyframe[@"to"]; NSArray *controlPoint1 = keyframe[@"to"];
NSArray *controlPoint2 = keyframe[@"ti"]; NSArray *controlPoint2 = keyframe[@"ti"];
CGPoint cp1, cp2 = CGPointZero; CGPoint cp1 = CGPointZero;
CGPoint cp2 = CGPointZero;
CGPoint vertex = [self _pointFromValueArray:endPoint]; CGPoint vertex = [self _pointFromValueArray:endPoint];
[pointKeyframes addObject:[NSValue valueWithCGPoint:vertex]]; [pointKeyframes addObject:[NSValue valueWithCGPoint:vertex]];