Skip to content

Commit

Permalink
文字动画抖动 bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
KylinLove committed Apr 11, 2020
1 parent 02e1934 commit 957c0c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/layaAir/laya/webgl/text/TextRender.ts
Expand Up @@ -251,10 +251,10 @@ export class TextRender {
if (this.hasFreedText(sameTexData)) {
sameTexData = wt.pageChars = [];
}
if(isWT && (this.fontScaleX!=wt.scalex || this.fontScaleY!=wt.scaley)) {
// 文字缩放要清理缓存
sameTexData = wt.pageChars = [];
}
// if(isWT && (this.fontScaleX!=wt.scalex || this.fontScaleY!=wt.scaley)) {
// // 文字缩放要清理缓存
// sameTexData = wt.pageChars = [];
// }
}
var ri: CharRenderInfo = null;
//var oneTex: boolean = isWT || TextRender.forceWholeRender; // 如果能缓存的话,就用一张贴图
Expand Down

0 comments on commit 957c0c2

Please sign in to comment.