Skip to content

Commit

Permalink
2.6.0 rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
KylinLove committed Apr 11, 2020
1 parent 05f03a9 commit dba0424
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
3 changes: 0 additions & 3 deletions build/as/jslibs/laya.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -7705,9 +7705,6 @@ window.Laya= (function (exports) {
if (this.hasFreedText(sameTexData)) {
sameTexData = wt.pageChars = [];
}
if (isWT && (this.fontScaleX != wt.scalex || this.fontScaleY != wt.scaley)) {
sameTexData = wt.pageChars = [];
}
}
var ri = null;
var splitTex = this.renderPerChar = (!isWT) || TextRender.forceSplitRender || isHtmlChar || (isWT && wt.splitRender);
Expand Down
3 changes: 0 additions & 3 deletions build/js/libs/laya.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -7705,9 +7705,6 @@ window.Laya= (function (exports) {
if (this.hasFreedText(sameTexData)) {
sameTexData = wt.pageChars = [];
}
if (isWT && (this.fontScaleX != wt.scalex || this.fontScaleY != wt.scaley)) {
sameTexData = wt.pageChars = [];
}
}
var ri = null;
var splitTex = this.renderPerChar = (!isWT) || TextRender.forceSplitRender || isHtmlChar || (isWT && wt.splitRender);
Expand Down
3 changes: 0 additions & 3 deletions build/ts/libs/laya.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -7705,9 +7705,6 @@ window.Laya= (function (exports) {
if (this.hasFreedText(sameTexData)) {
sameTexData = wt.pageChars = [];
}
if (isWT && (this.fontScaleX != wt.scalex || this.fontScaleY != wt.scaley)) {
sameTexData = wt.pageChars = [];
}
}
var ri = null;
var splitTex = this.renderPerChar = (!isWT) || TextRender.forceSplitRender || isHtmlChar || (isWT && wt.splitRender);
Expand Down
8 changes: 4 additions & 4 deletions build/ts_new/libs/laya/webgl/text/TextRender.ts
Original file line number Diff line number Diff line change
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 dba0424

Please sign in to comment.