From fbfbf167c714b7d4eff5431e992f0ccae9ae4d6c Mon Sep 17 00:00:00 2001 From: sir_nacnud Date: Thu, 19 Feb 2015 15:05:32 -0600 Subject: [PATCH] Modify CCCropNode to use node parent when getting world position of node --- Extensions/CCCropNode/CCCropNode.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extensions/CCCropNode/CCCropNode.m b/Extensions/CCCropNode/CCCropNode.m index daff4d4..fd22b44 100644 --- a/Extensions/CCCropNode/CCCropNode.m +++ b/Extensions/CCCropNode/CCCropNode.m @@ -87,7 +87,7 @@ - (void)visit:(CCRenderer *)renderer parentTransform:(const GLKMatrix4 *)parentT float scale = [CCDirector sharedDirector].contentScaleFactor; size = node.contentSize; - pos = [node convertToWorldSpace:node.position]; + pos = [node.parent convertToWorldSpace:node.position]; [renderer enqueueBlock:^{ glScissor(pos.x * scale, pos.y * scale, size.width * scale, size.height * scale);