xzw 3 роки тому
батько
коміт
1e30862e32
2 змінених файлів з 3 додано та 3 видалено
  1. 2 2
      public/lib/potree/potree.js
  2. 1 1
      public/lib/potree/potree.js.map

+ 2 - 2
public/lib/potree/potree.js

@@ -115128,7 +115128,7 @@ ENDSEC
             model.position.x += diff.x;
             model.position.y += diff.y;
             /* model.updateMatrixWorld()
-            this.getBoundCenterXY(model)//再次更新,它需要和center1相同 */
+            this.getBoundCenter(model)//再次更新,它需要和center1相同 */
             model.boundCenter = center1;
         },
         
@@ -126645,7 +126645,7 @@ ENDSEC
                 target.copy(object.position);
                 let bestDistance = o.distance || 3; 
                 
-                if(!o.dontMoveMap){ 
+                if(!o.dontMoveMap && this.mapViewer){ 
                     //console.log('mapFocusOn: '+target.toArray()) 
                     this.mapViewer.moveTo(target.clone(), null, duration);
                 }

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
public/lib/potree/potree.js.map