|
@@ -908,13 +908,12 @@ export class Images360 extends THREE.EventDispatcher{
|
|
|
}
|
|
|
|
|
|
|
|
|
- flyToPano(toPano) { //飞向漫游点
|
|
|
- if(!toPano)return
|
|
|
+ flyToPano(toPano={}) { //飞向漫游点
|
|
|
if(typeof toPano == 'number')toPano = this.panos[toPano]
|
|
|
if(toPano instanceof Panorama){
|
|
|
toPano = {pano: toPano}
|
|
|
}
|
|
|
-
|
|
|
+ if(!toPano?.pano )return toPano?.deferred?.resolve(false)
|
|
|
|
|
|
let done = (makeIt, disturb)=>{
|
|
|
//console.log('flyToPano done ', toPano.pano.id, makeIt, disturb )
|