minerender 2.1.0-alpha.123 → 2.1.0-alpha.124

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/bundle.js CHANGED
@@ -88859,11 +88859,14 @@ ${key}` : key;
88859
88859
  });
88860
88860
  }
88861
88861
  static fillMissingTextureKeys(textures, target) {
88862
- for (let faceName of CUBE_FACES) {
88863
- let v5 = textures[faceName];
88864
- if (v5 && v5.startsWith("#")) {
88865
- target[faceName] = target[v5.substr(1)];
88866
- }
88862
+ for (const key in textures) {
88863
+ let name2 = key;
88864
+ const seen = /* @__PURE__ */ new Set();
88865
+ while (textures[name2]?.startsWith("#") && !seen.has(name2)) {
88866
+ seen.add(name2);
88867
+ name2 = textures[name2].substr(1);
88868
+ }
88869
+ if (name2 !== key) target[key] = target[name2];
88867
88870
  }
88868
88871
  return target;
88869
88872
  }