Skip to content

Commit

Permalink
fix(ImageMapper): handle SlicingMode.NONE
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Nov 6, 2024
1 parent cde9a92 commit 2e4c5e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/Rendering/OpenGL/ImageMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,12 @@ function vtkOpenGLImageMapper(publicAPI, model) {
const worldToIndex = image.getWorldToIndex();

const imageDimensions = image.getDimensions();
const sliceAxis = model.renderable.getClosestIJKAxis().ijkMode;
let sliceAxis = model.renderable.getClosestIJKAxis().ijkMode;

// SlicingMode.NONE equates to SlicingMode.K
if (sliceAxis === SlicingMode.NONE) {
sliceAxis = SlicingMode.K;
}

program.setUniform3i(
'imageDimensions',
Expand Down

0 comments on commit 2e4c5e4

Please sign in to comment.