Skip to content

Commit

Permalink
fix(react-components): always use flexcam to avoid crash
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed May 29, 2024
1 parent b639f68 commit a2f9f13
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export type RevealContextProps = {
| 'ssaoQualityHint'
| 'pointCloudEffects'
| 'enableEdges'
| 'useFlexibleCameraManager'
| 'onLoading'
>;
};
Expand Down Expand Up @@ -104,7 +103,8 @@ const useRevealFromKeepAlive = ({
const viewer = new Cognite3DViewer({
...viewerOptions,
sdk,
hasEventListeners: !(viewerOptions?.useFlexibleCameraManager ?? false)
useFlexibleCameraManager: true,
hasEventListeners: false
});
renderTarget = new RevealRenderTarget(viewer);
if (revealKeepAliveData !== undefined) {
Expand Down

0 comments on commit a2f9f13

Please sign in to comment.