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.
@@ -3964,11 +3964,14 @@ var init_UVMapper = __esm({
3964
3964
  });
3965
3965
  }
3966
3966
  static fillMissingTextureKeys(textures, target) {
3967
- for (let faceName of CUBE_FACES) {
3968
- let v = textures[faceName];
3969
- if (v && v.startsWith("#")) {
3970
- target[faceName] = target[v.substr(1)];
3967
+ for (const key in textures) {
3968
+ let name = key;
3969
+ const seen = /* @__PURE__ */ new Set();
3970
+ while (textures[name]?.startsWith("#") && !seen.has(name)) {
3971
+ seen.add(name);
3972
+ name = textures[name].substr(1);
3971
3973
  }
3974
+ if (name !== key) target[key] = target[name];
3972
3975
  }
3973
3976
  return target;
3974
3977
  }