Skip to content

Commit

Permalink
fix(FaceMeasurement): handle world.isDisposing when setting visibility (
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSchneider authored Jul 5, 2024
1 parent 9d1dfa4 commit 68b40c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/front/src/measurement/FaceMeasurement/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ export class FaceMeasurement
if (!this.world) {
throw new Error("The face measurement needs a world to work!");
}
if (this.world.isDisposing) {
return;
}
const scene = this.world.scene.three;
for (const item of this.selection) {
const label = item.label.three;
Expand Down

0 comments on commit 68b40c1

Please sign in to comment.