mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
async Load Assets caused MASK to be invalid for fireball/issues/5802
This commit is contained in:
@@ -248,6 +248,9 @@ var Mask = cc.Class({
|
||||
|
||||
onEnable: function () {
|
||||
this._super();
|
||||
if (this.spriteFrame) {
|
||||
this.spriteFrame.ensureLoadTexture();
|
||||
}
|
||||
this.node.on('size-changed', this._refreshStencil, this);
|
||||
this.node.on('anchor-changed', this._refreshStencil, this);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user