From f91c7f5ab49d94b590f95f73d1a50451cee6a5db Mon Sep 17 00:00:00 2001 From: Gabriel Chartrand Date: Thu, 20 Feb 2025 14:34:24 -0500 Subject: [PATCH] update viewportProperties on setting orientation When calling setOrientation with an OrientationVectors, update the viewportProperties.orientation so that is does not revert back the orientation when subsequently calling resetCamera in applyViewOrientation. --- packages/core/src/RenderingEngine/VolumeViewport.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/RenderingEngine/VolumeViewport.ts b/packages/core/src/RenderingEngine/VolumeViewport.ts index 89f1ce5f9..a16447df1 100644 --- a/packages/core/src/RenderingEngine/VolumeViewport.ts +++ b/packages/core/src/RenderingEngine/VolumeViewport.ts @@ -192,6 +192,7 @@ class VolumeViewport extends BaseVolumeViewport { this.viewportProperties.orientation = orientation; this.resetCamera(); } else { + this.viewportProperties.orientation = undefined; ({ viewPlaneNormal, viewUp } = orientation); this.applyViewOrientation(orientation); }