@galacean/engine-loader 1.0.1 → 1.0.3

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.
@@ -2324,9 +2324,7 @@ var GLTFTextureParser = /*#__PURE__*/ function(GLTFParser) {
2324
2324
  mipmap: samplerInfo == null ? void 0 : samplerInfo.mipmap
2325
2325
  }
2326
2326
  }).then(function(texture) {
2327
- if (!texture.name) {
2328
- texture.name = textureName || imageName || "texture_" + index1;
2329
- }
2327
+ texture.name = textureName || imageName || texture.name || "texture_" + index1;
2330
2328
  if (sampler !== undefined) {
2331
2329
  _this._parseSampler(texture, samplerInfo);
2332
2330
  }
package/dist/module.js CHANGED
@@ -2319,9 +2319,7 @@ var GLTFTextureParser = /*#__PURE__*/ function(GLTFParser) {
2319
2319
  mipmap: samplerInfo == null ? void 0 : samplerInfo.mipmap
2320
2320
  }
2321
2321
  }).then(function(texture) {
2322
- if (!texture.name) {
2323
- texture.name = textureName || imageName || "texture_" + index1;
2324
- }
2322
+ texture.name = textureName || imageName || texture.name || "texture_" + index1;
2325
2323
  if (sampler !== undefined) {
2326
2324
  _this._parseSampler(texture, samplerInfo);
2327
2325
  }