Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GengineJS committed Nov 21, 2024
1 parent 57b9c73 commit 231b24d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cocos/2d/framework/ui-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ export class UIRenderer extends Renderer {
this.node.off(NodeEventType.PARENT_CHANGED, this._colorDirty, this);
// When disabling, it is necessary to free up idle space to fully utilize chunks
// and avoid breaking batch processing.
if (this._renderData) {
this.destroyRenderData();
}
this.destroyRenderData();
uiRendererManager.removeRenderer(this);
this._renderFlag = false;
this._renderEntity.enabled = false;
Expand Down

0 comments on commit 231b24d

Please sign in to comment.