Skip to content

Commit bb6f39d

Browse files
committed
fix(VolumeMapper): Use the right volume property for texture creation
1 parent e4eacd7 commit bb6f39d

File tree

1 file changed

+2
-2
lines changed
  • Sources/Rendering/OpenGL/VolumeMapper

1 file changed

+2
-2
lines changed

Sources/Rendering/OpenGL/VolumeMapper/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,9 +1672,9 @@ function vtkOpenGLVolumeMapper(publicAPI, model) {
16721672
model._colorTextureCore = colorTransferFunc;
16731673

16741674
// rebuild scalarTextures?
1675-
model.currentValidInputs.forEach(({ imageData }, component) => {
1675+
model.currentValidInputs.forEach(({ imageData, inputIndex }, component) => {
16761676
// rebuild the scalarTexture if the data has changed
1677-
const volumeProperty = volumeProperties[component];
1677+
const volumeProperty = volumeProperties[inputIndex];
16781678
const scalars = imageData.getPointData().getScalars();
16791679
const tex =
16801680
model._openGLRenderWindow.getGraphicsResourceForObject(scalars);

0 commit comments

Comments
 (0)