Transform applied to multiple volumes misbehaves when edited

When a transform is applied to more than one volume, and you then go to the Transforms module and edit it, weird things happen. When switching the presentation between the views, the transform (as applied to the volumes) changes (without changing in the module).

I did the following actions:

  • Open Slicer 5.12.4

  • Open the “Sample Data” module

  • Click “MRHead” and “MRBrainTumor1”. MRBrainTumor1 is presented in the slices.

  • Go To “Data” module

  • Right click on the right side of MRHead (the transform context menu), and pick “create new transform”

  • Move to the “Transform Hierarchy” tab, and drag MRBrainTumor1 under the transform

  • Go to the “Transforms” module. Using the “Rotation” scrollbar “IS”, rotate by 45°. The MRBrainTumor1 volume is rotated as expected.

  • Go back to the “Data” module. Click the MRHead eye to make it visible. Result:

  • Going back to the Transforms module, it still shows the 45°:

  • Now, clicking “Identity” to reset the transform:

  • And finally, “compare volumes”:

If you now return to the “conventional” view, you get the head in 45° again.

This last move seems to imply that the problem is mostly in the slice views, but that does not make it “just presentation” or “cosmetic”, because the transform is edited based on this presentation – leading to wrong transformation matrices being selected.