issue #2395: Scale9Sprite's default anchor point is center now.

This commit is contained in:
James Chen 2013-07-11 13:59:57 +08:00
parent b2c0d17aeb
commit 5727d7099b
1 changed files with 2 additions and 1 deletions

View File

@ -96,8 +96,9 @@ bool Scale9Sprite::initWithBatchNode(SpriteBatchNode* batchnode, Rect rect, bool
if(batchnode)
{
this->updateWithBatchNode(batchnode, rect, rotated, capInsets);
this->setAnchorPoint(ccp(0.5f, 0.5f));
}
this->setAnchorPoint(ccp(0.5f, 0.5f));
this->_positionsAreDirty = true;
return true;