Skip to content

Commit

Permalink
fix(core): correctly set the orientation of the volume (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
deerzlg authored May 28, 2024
1 parent a66ba08 commit 9637dfb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/core/src/utilities/convertStackToVolumeViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ async function convertStackToVolumeViewport({
);

const volumeViewportNewVolumeHandler = () => {
volumeViewport.setCamera({
...prevCamera,
});
if (!options.orientation) {
volumeViewport.setCamera({
...prevCamera,
});
}
volumeViewport.render();

element.removeEventListener(
Expand Down

0 comments on commit 9637dfb

Please sign in to comment.