fix: text dirty flag bug

This commit is contained in:
cptbtptpbcptdtptp
2026-04-29 20:08:41 +08:00
parent b87180b723
commit 79b289efa7
2 changed files with 2 additions and 0 deletions

View File

@@ -673,6 +673,7 @@ export class TextRenderer extends Renderer implements ITextRenderer {
if (charLength > 0) {
this._buildChunk(curTextChunk, charLength);
}
this._setDirtyFlagTrue(DirtyFlag.WorldPosition);
charRenderInfos.length = 0;
}

View File

@@ -590,6 +590,7 @@ export class Text extends UIRenderer implements ITextRenderer {
if (charLength > 0) {
this._buildChunk(curTextChunk, charLength);
}
this._setDirtyFlagTrue(DirtyFlag.WorldPosition);
charRenderInfos.length = 0;
}