@adatechnology/game-vehicles-three 0.8.0 → 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.
- package/dist/{chunk-NPS4X64L.js → chunk-C7FZFX3K.js} +7 -4
- package/dist/chunk-C7FZFX3K.js.map +1 -0
- package/dist/index.global.js +56 -31
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +8 -8
- package/dist/chunk-NPS4X64L.js.map +0 -1
|
@@ -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((
|
|
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((
|
|
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((
|
|
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-
|
|
3945
|
+
//# sourceMappingURL=chunk-C7FZFX3K.js.map
|