소스 검색

XRHandPrimitiveModel: Fixed bad copy paste.

Mr.doob 4 년 전
부모
커밋
c1790135ce
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      examples/jsm/webxr/XRHandPrimitiveModel.js

+ 2 - 1
examples/jsm/webxr/XRHandPrimitiveModel.js

@@ -1,4 +1,5 @@
 import {
+	DynamicDrawUsage,
 	SphereGeometry,
 	BoxGeometry,
 	MeshStandardMaterial,
@@ -30,7 +31,7 @@ class XRHandPrimitiveModel {
 		const material = new MeshStandardMaterial();
 
 		this.handMesh = new InstancedMesh( geometry, material, 30 );
-		this.handMesh.instanceMatrix.setUsage( THREE.DynamicDrawUsage ); // will be updated every frame
+		this.handMesh.instanceMatrix.setUsage( DynamicDrawUsage ); // will be updated every frame
 		this.handMesh.castShadow = true;
 		this.handMesh.receiveShadow = true;
 		this.handModel.add( this.handMesh );