From 3f0093b3c074537003c4d0cc01a46ffbb7791a92 Mon Sep 17 00:00:00 2001 From: Yuri Strot Date: Tue, 22 May 2018 11:06:53 +0700 Subject: [PATCH] Use locus.toCGPath() instead of RenderUtils.toBezierPath(locus).cgPath --- .../types/animation_generators/Cache/AnimationCache.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/animation/types/animation_generators/Cache/AnimationCache.swift b/Source/animation/types/animation_generators/Cache/AnimationCache.swift index fcafa493..71dc5936 100644 --- a/Source/animation/types/animation_generators/Cache/AnimationCache.swift +++ b/Source/animation/types/animation_generators/Cache/AnimationCache.swift @@ -60,7 +60,7 @@ class AnimationCache { // Clip if let clip = AnimationUtils.absoluteClip(node: node) { let maskLayer = CAShapeLayer() - let origPath = RenderUtils.toBezierPath(clip).cgPath + let origPath = clip.toCGPath() var offsetTransform = CGAffineTransform(translationX: -1.0 * cgRect.origin.x, y: -1.0 * cgRect.origin.y) let clipPath = origPath.mutableCopy(using: &offsetTransform) maskLayer.path = clipPath