Skip to content

Commit

Permalink
Fixed a possible source of hardlocking (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandruPopovici authored Mar 13, 2024
1 parent dfa340a commit 9b21f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/viewer/src/modules/batching/InstancedMeshBatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ export default class InstancedMeshBatch implements Batch {
if (value.materialIndex > k) value.materialIndex--
})
k = 0
continue
}
k++
}
Expand Down
1 change: 1 addition & 0 deletions packages/viewer/src/modules/batching/MeshBatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ export default class MeshBatch implements Batch {
if (value.materialIndex > k) value.materialIndex--
})
k = 0
continue
}
k++
}
Expand Down

0 comments on commit 9b21f95

Please sign in to comment.