set _renderComponent is null in mask disable (#2961)

This commit is contained in:
Knox
2018-07-10 17:14:49 +08:00
committed by pandamicro
parent bc071a0ff0
commit 666cd265d8
+1
View File
@@ -375,6 +375,7 @@ let Mask = cc.Class({
},
onDisable () {
this._super();
this.node._renderFlag &= ~(RenderFlow.FLAG_POST_RENDER | RenderFlow.FLAG_POST_UPDATE_RENDER_DATA);
},