Skip to content

Commit

Permalink
fix: 当包纹理集数量超过10,出现纹理加载错误
Browse files Browse the repository at this point in the history
  • Loading branch information
张宇 committed Jun 21, 2023
1 parent 3333735 commit 308763e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/bin/fairygui.js
Original file line number Diff line number Diff line change
Expand Up @@ -14737,8 +14737,8 @@ window.__extends = (this && this.__extends) || (function () {
itms.push({ url: file, type: ItemTypeToAssetType[pi.type] });
return;
}
var index = parseInt(file.substring(file.length - 1));
if (atlases.indexOf(index) >= 0) {
var clip = file.match(/(\w+_atlas)(\d+)/);
if (clip && atlases.indexOf(parseInt(clip[2])) >= 0) {
itms.push({ url: file, type: ItemTypeToAssetType[pi.type] });
}
}
Expand Down
4 changes: 2 additions & 2 deletions source/src/fairygui/UIPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ namespace fgui {
itms.push({ url: file, type: ItemTypeToAssetType[pi.type] });
return;
}
const index = parseInt(file.substring(file.length - 1));
if (atlases.indexOf(index) >= 0) {
const clip = file.match(/(\w+_atlas)(\d+)/);
if (clip && atlases.indexOf(parseInt(clip[2])) >= 0) {
itms.push({ url: file, type: ItemTypeToAssetType[pi.type] });
}
}
Expand Down

0 comments on commit 308763e

Please sign in to comment.