@thatopen/components 3.4.4 → 3.4.6

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/index.cjs CHANGED
@@ -12823,7 +12823,9 @@ const _FastModelPicker = class _FastModelPicker {
12823
12823
  return;
12824
12824
  }
12825
12825
  this._originalMaterials.set(child, child.material);
12826
- child.material = this._idMaterial;
12826
+ const original = child.material;
12827
+ const len = Array.isArray(original) ? original.length : 1;
12828
+ child.material = new Array(len).fill(this._idMaterial);
12827
12829
  any = true;
12828
12830
  });
12829
12831
  if (any)
@@ -12993,7 +12995,9 @@ const _FastModelPicker = class _FastModelPicker {
12993
12995
  if (!child.visible)
12994
12996
  return;
12995
12997
  matSwap.set(child, child.material);
12996
- child.material = material;
12998
+ const original = child.material;
12999
+ const len = Array.isArray(original) ? original.length : 1;
13000
+ child.material = new Array(len).fill(material);
12997
13001
  });
12998
13002
  }
12999
13003
  const bimRoots = /* @__PURE__ */ new Set();