private void changeCameraTarget() { if (this.selectedVessel == null) { return; } if (HSUtils.IsTrackingCenterActive) { HSUtils.RequestCameraFocus(this.selectedVessel); } else { HSUtils.FocusMapObject(this.selectedVessel); } }
private void changeCameraTarget() { // don't do anything if we are in the space center since there is no map view to change. if (HSUtils.IsSpaceCenterActive) { return; } if (this.SelectedVessel != null) { if (HSUtils.IsTrackingCenterActive) { HSUtils.RequestCameraFocus(this.SelectedVessel); } else { HSUtils.FocusMapObject(this.selectedVessel); } } if (this.SelectedBody != null) { HSUtils.FocusMapObject(this.SelectedBody); } }