|
|
@@ -58850,8 +58850,13 @@ class PanTransGuide{
|
|
|
if(i>0){
|
|
|
path.setWarpDestination(e)
|
|
|
path.setWarpDestPano()
|
|
|
- path.nodes = path.findShortestPath(path.getHeroPano(last), path.warpDestPano)
|
|
|
-
|
|
|
+ let A = path.getHeroPano(last),
|
|
|
+ B = path.warpDestPano
|
|
|
+ path.nodes = path.findShortestPath(A, B)
|
|
|
+ if(path.nodes == null){//两个点之间不相通
|
|
|
+ console.log('两个点之间不相通',A.id,B.id)
|
|
|
+ path.nodes = [A.id,B.id];//直接加入
|
|
|
+ }
|
|
|
let wholeDis = 0, disSections = []
|
|
|
path.nodes.forEach((cur,i)=>{
|
|
|
if(i==0)return
|