mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Fixed a bug about Sprite opacity
This commit is contained in:
@@ -167,8 +167,8 @@ var Sprite = cc.Class({
|
||||
this._spriteFrame = value;
|
||||
this._applySpriteFrame(lastSprite);
|
||||
// color cleared after reset texture, should re-apply color
|
||||
this._sgNode.setColor(this.node._color);
|
||||
this._sgNode.setOpacity(this.node._opacity);
|
||||
// this._sgNode.setColor(this.node._color);
|
||||
// this._sgNode.setOpacity(this.node._opacity);
|
||||
},
|
||||
type: cc.SpriteFrame,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user