fix polygon sprite bug.

This commit is contained in:
Jacky 2015-07-08 10:07:35 +08:00
parent f42a76b438
commit 06c06a1f03
1 changed files with 1 additions and 1 deletions

View File

@ -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());