mirror of https://github.com/axmolengine/axmol.git
Copy polygonInfo when cloning SpriteFrame
This commit is contained in:
parent
0a609e9176
commit
20b31eb1e8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue