xzw 1 년 전
부모
커밋
80dad0b349
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/sdk/laser/core/enter.js

+ 1 - 1
src/sdk/laser/core/enter.js

@@ -750,7 +750,7 @@ var enter = ({
              
                 console.log('createFixPoint',measure, graph, pos, basePoint)
                 let shape,  measureFun, mainPoint = new THREE.Vector3(), bus = mitt();  
-                mainPoint.basePoint = new THREE.Vector3().copy(basePoint)
+                basePoint && (mainPoint.basePoint = new THREE.Vector3().copy(basePoint))
                 mainPoint.bus = bus
                 
                 const baseLineChanged = ()=>{