# Bug XEO-13 - Loading BCF viewpoint of other camera type leaves ortho toggle out of sync

Project: Xeokit
Status: closed
URL: https://community.openproject.org/work_packages/XEO-13

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.0.0 |
| Observed in versions |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Lindsay Kay |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Content

This bug ticket is only a wrapper for:

*   [https://github.com/xeokit/xeokit-bim-viewer/issues/91](https://github.com/xeokit/xeokit-bim-viewer/issues/91)
*   [https://github.com/xeokit/xeokit-bim-viewer/issues/92](https://github.com/xeokit/xeokit-bim-viewer/issues/92)

It was created to keep track on the bug behavior inside the [Xeokit](https://community.openproject.org/projects/xeokit/) project.

#### How to reproduce

* Open BCF viewer
* Create a view point with orthogonal camera and one with perspective camera
* Enable orthogonal view mode
* Load perspective view point (1)
* Manually enable perspective view mode (2)
* Load orthogonal view point (3)
* Load perspective view point, then orthogonal view point and then again perspective view point (4)

#### What should happen

* (1) the view point is loaded, the toggle button displays perspective mode, the viewer is in perspective mode
* (2) the toggle button toggles the view modes for the viewer
* (3) the view point is loaded, the toggle button displays orthogonal mode, the viewer is in orthogonal mode
* (4) view points are loaded correctly, the viewer and the view mode toggle display the same view mode

#### What actually happens

* (1) the view point is loaded, the toggle button displays orthogonal mode, the viewer is in perspective mode
* (2) the toggle button toggles itself, but the viewer isn't changing. After 2nd click it behaves as expected
* (3) the view point is loaded, the toggle button displays perspective mode, the viewer is in orthogonal mode
* (4) view points are loaded correctly, the viewer and the view mode toggle display always contrary view modes
