|
@@ -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);
|
|
|
}
|