This commit is contained in:
Horcrux
2016-08-16 20:00:49 +08:00
parent b6165a98c7
commit 63ad060e49
2 changed files with 6 additions and 8 deletions
+2 -3
View File
@@ -28,9 +28,8 @@
- (void)renderLayerTo:(CGContextRef)context
{
if (!self.d) {
self.d = [self getPath:context];;
}
// todo: add detection if path has changed since last update.
self.d = [self getPath:context];
CGPathRef path = self.d;
if ((!self.fill && !self.stroke) || !path) {
return;