|
@@ -9,10 +9,10 @@ let sourceApp = null,
|
|
|
const isEdit = browser.urlHasValue('adjust')
|
|
|
|
|
|
|
|
|
-/* let targetPano = isEdit ? [//targetPano
|
|
|
+let targetPano = isEdit ? null : [//targetPano
|
|
|
{position: new THREE.Vector3( -5.313605730801787, -4.889868407960505, 1.237447893355817),},
|
|
|
{position: new THREE.Vector3( -5.337403524084278, -2.5012228235167737, 1.2808838933558175),}
|
|
|
- ] : */
|
|
|
+ ]
|
|
|
|
|
|
const initConvertView = (isSwitchScene) => {
|
|
|
|
|
@@ -20,17 +20,14 @@ const initConvertView = (isSwitchScene) => {
|
|
|
|
|
|
if (sourceApp && targetApp) {
|
|
|
if(targetApp.sceneType == 'bim'){
|
|
|
-
|
|
|
+ if(isEdit)return
|
|
|
|
|
|
if(sourceApp.sceneType == 'laser'){
|
|
|
views.bindWithBim(
|
|
|
sourceApp,
|
|
|
targetApp,
|
|
|
sourceApp.viewer.images360.panos.slice(0, 2),
|
|
|
- [//targetPano
|
|
|
- {position: new THREE.Vector3( -5.313605730801787, -4.889868407960505, 1.237447893355817),},
|
|
|
- {position: new THREE.Vector3( -5.337403524084278, -2.5012228235167737, 1.2808838933558175),}
|
|
|
- ],
|
|
|
+ targetPano
|
|
|
|
|
|
)
|
|
|
sourceApp.Potree.settings.rotAroundPoint = false
|
|
@@ -41,10 +38,7 @@ const initConvertView = (isSwitchScene) => {
|
|
|
sourceApp,
|
|
|
targetApp,
|
|
|
sourceApp.app.core.get('Player').model.panos.list.slice(0, 2),
|
|
|
- [//targetPano
|
|
|
- {position: new THREE.Vector3( -5.313605730801787, -4.889868407960505, 1.237447893355817),},
|
|
|
- {position: new THREE.Vector3( -5.337403524084278, -2.5012228235167737, 1.2808838933558175),}
|
|
|
- ],
|
|
|
+ targetPano,
|
|
|
|
|
|
)
|
|
|
|