Skip to content

Commit

Permalink
fix(ImageMapper): unstable resource reference
Browse files Browse the repository at this point in the history
Array getters by default return a copy of the underlying array.
labelOutlineThicknessArray is used as a key in a map to detect changes,
so use a reference to the underlying array instead of a copy.
floryst committed Nov 4, 2024
1 parent c962c49 commit b8c6162
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
@@ -1354,7 +1354,7 @@ function vtkOpenGLImageMapper(publicAPI, model) {
publicAPI.updatelabelOutlineThicknessTexture = (image) => {
const labelOutlineThicknessArray = image
.getProperty()
.getLabelOutlineThickness();
.getLabelOutlineThicknessByReference();

const lTex = model._openGLRenderWindow.getGraphicsResourceForObject(
labelOutlineThicknessArray

0 comments on commit b8c6162

Please sign in to comment.