xzw 2 年之前
父節點
當前提交
c959ae2d29
共有 1 個文件被更改,包括 6 次插入14 次删除
  1. 6 14
      src/sdk/cover/index.js

+ 6 - 14
src/sdk/cover/index.js

@@ -507,11 +507,7 @@ export const enter = (dom, isLocal) => {
                     props.show = show  //for autoLoads show model
                     if(model){ 
                         Potree.Utils.updateVisible(model, 'changeShow', show) 
-                        viewer.dispatchEvent('content_changed')
-                        
-                        setTimeout(()=>{
-                             viewer.dispatchEvent('content_changed')
-                        },100)
+                        viewer.dispatchEvent('content_changed') 
                     } 
                 },
                 changeSelect(state){
@@ -540,24 +536,20 @@ export const enter = (dom, isLocal) => {
                      
                 },
                 changeBottom(z){
-                    console.log('changeBottom',z)
+                    //console.log('changeBottom',z)
                     model && MergeEditor.setModelBtmHeight(model,z)
                     model.dispatchEvent('transformChanged') //改了position */
                 },
                 
                 changePosition(pos){//校准取消时执行
-                    //if(MergeEditor.selected == model){
-                        //console.log('pos',pos.x, pos.y, pos.z)
-                    //} 
-                    console.log('changePosition',pos.x, pos.y, pos.z)
+                   
+                    //console.log('changePosition',pos.x, pos.y, pos.z)
                     model && model.position.copy(pos)
                     model.dispatchEvent({type:'position_changed'}) 
                 }, 
                 changeRotation(rot){//校准取消时执行 
-                    //if(MergeEditor.selected == model){
-                        //console.log('rot', rot.x, rot.y, rot.z)
-                    //}
-                    console.log('changeRotation',rot.x, rot.y, rot.z)
+                    
+                    //console.log('changeRotation',rot.x, rot.y, rot.z)
                     model && model.rotation.setFromVector3(rot) 
                     model.dispatchEvent({type:'rotation_changed'})  
                 },