mirror of
https://github.com/galacean/engine.git
synced 2026-06-01 00:05:56 +08:00
fix: text dirty flag bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user