refactor Scale9Sprite setColor & setOpacity

This commit is contained in:
andyque 2014-06-06 16:15:19 +08:00
parent 4f22b03d7f
commit 8962f7fc2e
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ bool Scale9Sprite::initWithBatchNode(SpriteBatchNode* batchnode, const Rect& rec
{
this->updateWithBatchNode(batchnode, rect, rotated, capInsets);
}
this->setCascadeColorEnabled(true);
this->setCascadeOpacityEnabled(true);
this->setAnchorPoint(Vec2(0.5f, 0.5f));
this->_positionsAreDirty = true;