|
@@ -428,19 +428,22 @@ class ExtendView extends View {
|
|
|
let onUpdate = info.onUpdate
|
|
|
info.onUpdate = (progress, delta)=>{
|
|
|
lerp.matrix4(info.midCamera.projectionMatrix, info.endCamera.projectionMatrix)(progress)
|
|
|
-
|
|
|
- /* console.log('matrixWorld', viewport.camera.position.toArray(), viewport.camera.matrixWorld.toArray())
|
|
|
- console.log('projectionMatrix', info.endCamera.zoom, viewport.camera.projectionMatrix.toArray())
|
|
|
- */
|
|
|
+
|
|
|
onUpdate && onUpdate(progress, delta)
|
|
|
}
|
|
|
|
|
|
let callback = info.callback
|
|
|
info.callback = ()=>{
|
|
|
viewport.camera = info.endCamera
|
|
|
+ viewer.scene.measurements.forEach((e)=>{
|
|
|
+ Potree.Utils.updateVisible(e, 'tranCamera', true)
|
|
|
+ })
|
|
|
+ this.applyToCamera(viewport.camera)
|
|
|
+ viewer.dispatchEvent({type:'camera_changed', viewport:viewer.mainViewport, changeInfo:{}})//update sprite
|
|
|
+
|
|
|
callback && callback()
|
|
|
}
|
|
|
-
|
|
|
+ //info.forbitCancel = true
|
|
|
|
|
|
info.camera = info.endCamera
|
|
|
|