# Selected segment and applied effect history on undo/redo

**URL:** <https://discourse.slicer.org/t/selected-segment-and-applied-effect-history-on-undo-redo/21880>\
**Category:** Development\
**Created:** [February 9, 2022, 9:20pm UTC](https://discourse.slicer.org/t/selected-segment-and-applied-effect-history-on-undo-redo/21880 "2022-02-09T21:20:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [February 12, 2022, 6:11pm UTC](https://discourse.slicer.org/t/selected-segment-and-applied-effect-history-on-undo-redo/21880/3 "2022-02-12T18:11:54Z")

</div>

I was able to bypass the problem by using the info here: [Observe modified segment - #2 by lassoan](https://discourse.slicer.org/t/observe-modified-segment/7528/2) to create a log of executed effects (I could do that because we have segmentation steps that execute sequentially fixed segmentEditor effects or allow user-interactions like paint effect)  
And we decided to only give support to undo/redo the paint steps of our workflow.

However, there is a [bug](https://github.com/Slicer/Slicer/issues/6183) on the segment editor that breaks our custom undo/redo logic.

---

_[View the full topic](https://discourse.slicer.org/t/selected-segment-and-applied-effect-history-on-undo-redo/21880)._
