Skip to content

Commit

Permalink
fix(VolumeMapper): Use the right volume property for texture creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bruyeret committed Oct 4, 2024
1 parent dd4af97 commit 5f29c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Rendering/OpenGL/VolumeMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1672,9 +1672,9 @@ function vtkOpenGLVolumeMapper(publicAPI, model) {
model._colorTextureCore = colorTransferFunc;

// rebuild scalarTextures?
model.currentValidInputs.forEach(({ imageData }, component) => {
model.currentValidInputs.forEach(({ imageData, inputIndex }, component) => {
// rebuild the scalarTexture if the data has changed
const volumeProperty = volumeProperties[component];
const volumeProperty = volumeProperties[inputIndex];
const scalars = imageData.getPointData().getScalars();
const tex =
model._openGLRenderWindow.getGraphicsResourceForObject(scalars);
Expand Down

0 comments on commit 5f29c73

Please sign in to comment.