Hi, I am using vtkMRMLTextNodes, but am having problems with modifications to them being saved when I save the scene. Basically, changes to text nodes never seem to trigger that the scene has been changed or that they have been changed in a way that needs to be saved. In the save data window, text node lines are never checked as needing saving, and changing only text node text does not indicate that the scene has changed.
Here is a minimal example to reproduce:
- Open Slicer
- At python interactor enter tn = slicer.mrmlScene.AddNewNodeByClass(‘vtkMRMLTextNode’, ‘testText’)
- Save scene
- Modify text in text node, either via the Texts module or via tn.setText()
- Click to open save data window
The scene does not register that anything has changed, and the mrml line is unchecked. If the text is >250 characters, the text file save line is there, but it is unchecked, even though this is a brand new never-before-saved file.
Having the text node send a tn.Modified() signal doesn’t make any difference.
I’m using 4.11.20200930.
I’m guessing that some signal is going awry, but I’m not sure how to figure out what it is or how to fix it if I did realize. Any help you can provide would be appreciated, thanks!