Skip to content

Commit

Permalink
fix(camera) - Fixes issue #4636 of OHIF related with infinite loop of…
Browse files Browse the repository at this point in the history
… setViewReference (#1847)

* Fixes issue #4636 of OHIF related with infinite loop of setViewReference

* Fix a typescript issue.
  • Loading branch information
YiannisTheocharakis authored Feb 28, 2025
1 parent ef8157e commit 28ea428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/RenderingEngine/BaseVolumeViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ abstract class BaseVolumeViewport extends Viewport {
this.initialViewUp = viewUp;

if (resetCamera) {
this.resetCamera();
const t = this as unknown as IVolumeViewport;
t.resetCamera({ resetOrientation: false, resetRotation: false });
}
}

Expand Down

0 comments on commit 28ea428

Please sign in to comment.