@adatechnology/game-vehicles-three 0.8.1 → 0.8.2

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.
@@ -1424,7 +1424,8 @@ function createVehiclesTestModule(options = {}) {
1424
1424
  const primary = primaryPaint(entry.item.vehicle);
1425
1425
  if (!primary) return;
1426
1426
  entry.paint = primary.clone();
1427
- vehicle.vehicle.traverse((mesh) => {
1427
+ vehicle.vehicle.traverse((obj) => {
1428
+ const mesh = obj;
1428
1429
  if (!mesh.isMesh) return;
1429
1430
  if (Array.isArray(mesh.material)) mesh.material = mesh.material.map((m) => m === primary ? entry.paint : m);
1430
1431
  else if (mesh.material === primary) mesh.material = entry.paint;
@@ -1534,7 +1535,8 @@ function createVehiclesTestModule(options = {}) {
1534
1535
  const low = new three.Box3();
1535
1536
  const piece = new three.Box3();
1536
1537
  const matrix = new three.Matrix4();
1537
- entry.root.traverse((mesh) => {
1538
+ entry.root.traverse((obj) => {
1539
+ const mesh = obj;
1538
1540
  if (!mesh.isMesh || !mesh.geometry || mesh.userData.ghost) return;
1539
1541
  for (let p = mesh; p; p = p.parent) if (p.visible === false) return;
1540
1542
  if (mesh.userData.helper) return;
@@ -1781,7 +1783,8 @@ function createVehiclesTestModule(options = {}) {
1781
1783
  let drawCalls = 0;
1782
1784
  let triangles = 0;
1783
1785
  for (const entry of placed.values()) {
1784
- entry.root.traverse((mesh) => {
1786
+ entry.root.traverse((obj) => {
1787
+ const mesh = obj;
1785
1788
  if (!mesh.isMesh || mesh.userData.helper) return;
1786
1789
  for (let p = mesh; p; p = p.parent) if (p.visible === false) return;
1787
1790
  drawCalls += 1;
@@ -3939,4 +3942,4 @@ export {
3939
3942
  createProvingModule,
3940
3943
  loadProvingModule
3941
3944
  };
3942
- //# sourceMappingURL=chunk-NPS4X64L.js.map
3945
+ //# sourceMappingURL=chunk-C7FZFX3K.js.map