Commit 5533c50
Contouring: close the discard dialog on Yes; live erase boundary
(1) The "Discard unsaved edits?" confirm did not dismiss on Yes: self.close()
ran synchronously inside the message box's button-click handler, deleting
the box (a child of the panel) before it dismissed. Defer the panel close
with QTimer.singleShot.
(2) Erasing left the old boundary on screen until the drag ended. The full
render drew the working-mask overlay (and the edited structure's committed
contour) statically, and _live_update_axial stacked a live overlay on top.
Now skip the edited structure's committed contour, and hand the axial
working overlay to the live updater so each brush/erase step removes and
redraws it - the dashed boundary shrinks in real time while erasing.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 1f8619e commit 5533c50
1 file changed
Lines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2608 | 2608 | | |
2609 | 2609 | | |
2610 | 2610 | | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
2611 | 2614 | | |
| 2615 | + | |
| 2616 | + | |
2612 | 2617 | | |
2613 | 2618 | | |
2614 | 2619 | | |
| |||
2623 | 2628 | | |
2624 | 2629 | | |
2625 | 2630 | | |
2626 | | - | |
2627 | 2631 | | |
2628 | 2632 | | |
2629 | 2633 | | |
| 2634 | + | |
2630 | 2635 | | |
2631 | | - | |
2632 | | - | |
2633 | | - | |
2634 | | - | |
2635 | | - | |
2636 | | - | |
2637 | | - | |
| 2636 | + | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
2638 | 2649 | | |
2639 | 2650 | | |
2640 | 2651 | | |
| |||
3890 | 3901 | | |
3891 | 3902 | | |
3892 | 3903 | | |
3893 | | - | |
| 3904 | + | |
| 3905 | + | |
| 3906 | + | |
| 3907 | + | |
3894 | 3908 | | |
3895 | 3909 | | |
3896 | 3910 | | |
| |||
0 commit comments