mirror of https://github.com/axmolengine/axmol.git
issue #2395: Scale9Sprite's default anchor point is center now.
This commit is contained in:
parent
b2c0d17aeb
commit
5727d7099b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue