fix(viewer-lib): Handles WEB-4509: Isolating without ghosting on instanced objects

This commit is contained in:
AlexandruPopovici
2025-10-18 10:51:37 +03:00
parent 1acdfb508e
commit e64b309045
@@ -380,13 +380,9 @@ export class InstancedMeshBatch implements Batch {
}
private shuffleDrawGroups(): void {
const groups = this.groups
.sort((a, b) => {
return a.start - b.start
})
.slice()
const groups = this.groups.slice()
this.groups.sort((a, b) => {
groups.sort((a, b) => {
const materialA: Material = this.materials[a.materialIndex]
const materialB: Material = this.materials[b.materialIndex]
const visibleOrder =