@galacean/engine-loader 1.0.2 → 1.0.4

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