|
@@ -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'})
|
|
|
},
|