async Load Assets caused MASK to be invalid for fireball/issues/5802

This commit is contained in:
knoxHuang
2017-05-23 16:33:13 +08:00
parent ab9381cc71
commit 4fbf99e4b5
+3
View File
@@ -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);
},