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.
@@ -3867,11 +3867,14 @@ var init_UVMapper = __esm({
3867
3867
  });
3868
3868
  }
3869
3869
  static fillMissingTextureKeys(textures, target) {
3870
- for (let faceName of CUBE_FACES) {
3871
- let v = textures[faceName];
3872
- if (v && v.startsWith("#")) {
3873
- target[faceName] = target[v.substr(1)];
3870
+ for (const key in textures) {
3871
+ let name = key;
3872
+ const seen = /* @__PURE__ */ new Set();
3873
+ while (textures[name]?.startsWith("#") && !seen.has(name)) {
3874
+ seen.add(name);
3875
+ name = textures[name].substr(1);
3874
3876
  }
3877
+ if (name !== key) target[key] = target[name];
3875
3878
  }
3876
3879
  return target;
3877
3880
  }