Skip to content

Commit

Permalink
fix(OculusHandPointerModel): safely dispose pointer mesh (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett authored Jul 7, 2023
1 parent 1401fce commit 048da9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webxr/OculusHandPointerModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class OculusHandPointerModel extends THREE.Object3D {
this.visible = false
this.xrInputSource = null

this.pointerGeometry.dispose()
this.pointerMesh.material.dispose()
this.pointerGeometry?.dispose()
this.pointerMesh?.material.dispose()

this.clear()
}
Expand Down

0 comments on commit 048da9a

Please sign in to comment.