From 20b31eb1e8b7058daaab4f9ae22ca89bd4ba8f5a Mon Sep 17 00:00:00 2001 From: Nicholas Barrios Date: Wed, 20 Apr 2016 03:04:19 -0400 Subject: [PATCH] Copy polygonInfo when cloning SpriteFrame --- cocos/2d/CCSpriteFrame.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/2d/CCSpriteFrame.cpp b/cocos/2d/CCSpriteFrame.cpp index 9ae9843817..809fcbac89 100644 --- a/cocos/2d/CCSpriteFrame.cpp +++ b/cocos/2d/CCSpriteFrame.cpp @@ -137,6 +137,7 @@ SpriteFrame* SpriteFrame::clone() const SpriteFrame *copy = new (std::nothrow) SpriteFrame(); copy->initWithTextureFilename(_textureFilename, _rectInPixels, _rotated, _offsetInPixels, _originalSizeInPixels); copy->setTexture(_texture); + copy->setPolygonInfo(_polygonInfo); copy->autorelease(); return copy; }