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 = ()=>{