Copy polygonInfo when cloning SpriteFrame

This commit is contained in:
Nicholas Barrios 2016-04-20 03:04:19 -04:00
parent 0a609e9176
commit 20b31eb1e8
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}