We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e1de2d commit 7500dbeCopy full SHA for 7500dbe
Sources/Common/DataModel/ImageData/index.js
@@ -232,7 +232,9 @@ function vtkImageData(publicAPI, model) {
232
vtkBoundingBox.transformBounds(bin, model.worldToIndex, bout);
233
234
// Make sure the transform is correct
235
- publicAPI.onModified(publicAPI.computeTransforms);
+ model._onOriginChanged = publicAPI.computeTransforms;
236
+ model._onDirectionChanged = publicAPI.computeTransforms;
237
+ model._onSpacingChanged = publicAPI.computeTransforms;
238
publicAPI.computeTransforms();
239
240
publicAPI.getCenter = () => vtkBoundingBox.getCenter(publicAPI.getBounds());
0 commit comments