mirror of https://github.com/axmolengine/axmol.git
fix polygon sprite bug.
This commit is contained in:
parent
f42a76b438
commit
06c06a1f03
|
@ -223,7 +223,7 @@ bool Sprite::initWithPolygon(const cocos2d::PolygonInfo &info)
|
|||
{
|
||||
Texture2D *texture = Director::getInstance()->getTextureCache()->addImage(info.filename);
|
||||
bool res = false;
|
||||
if(initWithTexture(texture));
|
||||
if(initWithTexture(texture))
|
||||
{
|
||||
_polyInfo = info;
|
||||
setContentSize(_polyInfo.rect.size/Director::getInstance()->getContentScaleFactor());
|
||||
|
|
Loading…
Reference in New Issue