diff --git a/packages/viewer/src/modules/batching/InstancedMeshBatch.ts b/packages/viewer/src/modules/batching/InstancedMeshBatch.ts index 85af78b2a1..f318d0d598 100644 --- a/packages/viewer/src/modules/batching/InstancedMeshBatch.ts +++ b/packages/viewer/src/modules/batching/InstancedMeshBatch.ts @@ -407,6 +407,7 @@ export default class InstancedMeshBatch implements Batch { if (value.materialIndex > k) value.materialIndex-- }) k = 0 + continue } k++ } diff --git a/packages/viewer/src/modules/batching/MeshBatch.ts b/packages/viewer/src/modules/batching/MeshBatch.ts index 3380fab751..31a6624b15 100644 --- a/packages/viewer/src/modules/batching/MeshBatch.ts +++ b/packages/viewer/src/modules/batching/MeshBatch.ts @@ -439,6 +439,7 @@ export default class MeshBatch implements Batch { if (value.materialIndex > k) value.materialIndex-- }) k = 0 + continue } k++ }