Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Fix loading of sequence nodes #7441

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

lassoan
Copy link
Contributor

@lassoan lassoan commented Dec 3, 2023

When a sequence was saved into a scene and then that scene was loaded then browsing did not work. The problem was caused by a typo that set missingItemMode to invalid and thereby disabling copying of sequence content into the proxy node.

Fixed the typo, made setting of missingItemMode more robust (if invalid string is found then the mode is not changed just a warning is logged), and added automated tests to capture similar errors in the future.

fixes #7440

@lassoan lassoan added this to the Slicer 5.7 milestone Dec 3, 2023
@lassoan lassoan requested a review from jcfr December 3, 2023 05:32
@lassoan lassoan self-assigned this Dec 3, 2023
When a sequence was saved into a scene and then that scene was loaded then browsing did not work.
The problem was caused by a typo that set missingItemMode to invalid and thereby disabling copying of sequence content into the proxy node.

Fixed the typo, made setting of missingItemMode more robust (if invalid string is found then the mode is not changed just a warning is logged), and added automated tests to capture similar errors in the future.

fixes Slicer#7440
@lassoan lassoan enabled auto-merge (rebase) December 3, 2023 05:43
@lassoan lassoan disabled auto-merge December 4, 2023 16:15
@lassoan lassoan merged commit 140d58a into Slicer:main Dec 4, 2023
5 checks passed
@lassoan lassoan deleted the fix-sequence-loading branch December 4, 2023 16:15
@jcfr jcfr added the backport:5.x Identify pull request expected to be backported to the current 5.x release branch. label Dec 11, 2023
@jcfr jcfr removed the backport:5.x Identify pull request expected to be backported to the current 5.x release branch. label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Sequence proxy node not updated after reopening scene with stored sequence
2 participants