瀏覽代碼

Update OculusHandPointerModel.js

Clean up.
Michael Herzog 2 年之前
父節點
當前提交
95fbc39b07
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/jsm/webxr/OculusHandPointerModel.js

+ 2 - 2
examples/jsm/webxr/OculusHandPointerModel.js

@@ -70,8 +70,8 @@ class OculusHandPointerModel extends THREE.Object3D {
 		this.visible = false;
 		this.xrInputSource = null;
 
-		if (this.pointerGeometry) this.pointerGeometry.dispose();
-		if (this.pointerMesh && this.pointerMesh.material) this.pointerMesh.material.dispose();
+		if ( this.pointerGeometry ) this.pointerGeometry.dispose();
+		if ( this.pointerMesh && this.pointerMesh.material ) this.pointerMesh.material.dispose();
 
 		this.clear();