mirror of https://github.com/axmolengine/axmol.git
refactor Scale9Sprite setColor & setOpacity
This commit is contained in:
parent
4f22b03d7f
commit
8962f7fc2e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue