Skip to content

Commit

Permalink
fix(Rendering): maybe fix image mapper
Browse files Browse the repository at this point in the history
ImageMapper needs to reebuild the VBO if the
slice direction changes.
  • Loading branch information
martinken authored and jourdain committed Jan 23, 2018
1 parent befa1f4 commit 81e88a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Rendering/OpenGL/ImageMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ function vtkOpenGLImageMapper(publicAPI, model) {
const toString = `${nSlice}A${image.getMTime()}A${image
.getPointData()
.getScalars()
.getMTime()}B${publicAPI.getMTime()}`;
.getMTime()}B${publicAPI.getMTime()}C${model.renderable.getCurrentSlicingMode()}`;
if (model.VBOBuildString !== toString) {
// Build the VBOs
const dims = image.getDimensions();
Expand Down

0 comments on commit 81e88a0

Please sign in to comment.