Skip to content

Commit

Permalink
Merge pull request #4389 from 3drepo/ISSUE_4388
Browse files Browse the repository at this point in the history
ISSUE #4388 - Save camera does not save clipping planes
  • Loading branch information
carmenfan authored Aug 8, 2023
2 parents b61c789 + a1992fa commit 440f27e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const TicketView = ({
const context = useContext(TicketContext);
const hasViewpoint = value?.camera;

// Viewpointx`
// Viewpoint
const updateViewpoint = async () => {
const currentCameraAndClipping = await ViewerService.getViewpoint();
const screenshot = stripBase64Prefix(await ViewerService.getScreenshot());
Expand All @@ -76,9 +76,9 @@ export const TicketView = ({

// Camera
const onUpdateCamera = async () => {
const { camera } = await ViewerService.getViewpoint();
const currentCameraAndClipping = await ViewerService.getViewpoint();
const screenshot = stripBase64Prefix(await ViewerService.getScreenshot());
onChange?.({ ...value, screenshot, camera });
onChange?.({ screenshot, ...currentCameraAndClipping });
};

const onDeleteCamera = async () => {
Expand Down

0 comments on commit 440f27e

Please sign in to comment.