fix sprite update renderData onEnable (#3085)

This commit is contained in:
PP
2018-08-14 15:23:42 +08:00
committed by pandamicro
parent 137488c300
commit 6be4597e5c
+1 -1
View File
@@ -444,7 +444,7 @@ var Sprite = cc.Class({
}
this._updateAssembler();
this._renderData.uvDirty = true;
this.markForUpdateRenderData(true);
this.node.on(NodeEvent.SIZE_CHANGED, this._onNodeSizeDirty, this);
this.node.on(NodeEvent.ANCHOR_CHANGED, this._onNodeSizeDirty, this);