@zhongguo168a/yxeditor-common 0.0.95 → 0.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -5298,8 +5298,12 @@ class AssetLoader extends Dispatcher {
5298
5298
  break;
5299
5299
  }
5300
5300
  case 1: {
5301
+ let suffix = "";
5302
+ if (type instanceof Texture2D) {
5303
+ suffix = "@6c48a";
5304
+ }
5301
5305
  if (item.preload) {
5302
- assetManager.preloadAny({ uuid: item.uri.uuid }, { type: type }, (err, asset) => {
5306
+ assetManager.preloadAny({ uuid: item.uri.uuid + suffix }, { type: type }, (err, asset) => {
5303
5307
  if (this._stop) {
5304
5308
  return;
5305
5309
  }
@@ -5308,7 +5312,7 @@ class AssetLoader extends Dispatcher {
5308
5312
  });
5309
5313
  }
5310
5314
  else {
5311
- assetManager.loadAny({ uuid: item.uri.uuid }, { type: type }, (err, asset) => {
5315
+ assetManager.loadAny({ uuid: item.uri.uuid + suffix }, { type: type }, (err, asset) => {
5312
5316
  if (this._stop) {
5313
5317
  return;
5314
5318
  }