Skip to content

BUG: Fix transform hierarchy errors after scene load

Andras Lasso requested to merge fix-transform-hierarchy-after-import-4080 into master

The problem was that qMRMLSceneTransformModel tries to determine the parent transform node as soon as the node is added to the scene, but at the time FirstTransformNode was added to the scene, the parent SecondTransformNode had not yet added to the scene, so it got NULL as parent transform.

In general, node IDs and references are not valid until the import is completed, therefore they cannot be added one by one.

Solution: do scene import always in batch mode.

Fixes https://issues.slicer.org/view.php?id=4080

Merge request reports

Loading