-
Notifications
You must be signed in to change notification settings - Fork 16
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
Undo/redo buttons in Editor widget are not functional #135
Comments
@fedorov Undo/Redo anyway behaves weird even when using Editor only module .... |
right, I was going to test outside SliceTracker and confirm. If this is a Slicer issue, it should be reported separately. I believe in the past it was possible to undo individual strokes while painting. Maybe it is not supposed to work anymore. cc: @pieper |
Can you explain what you mean by behaving weird? Nothing should have changed recently. |
I just tried a recent build and undo/redo of paint and draw operations work fine for me. |
@pieper I just tried nightly from 07/12/2016 and it works better. Other than that, when creating a structure, painting something and then deleting the structure, I can still use undo/redo buttons and nothing happens. The history should be cleared or if after deleting the structure "undo" is pushed, the structure should be reverted. |
Hmm, nothing should have changed in years with this behavior so I'm not Also, it would help if you clearly stated the sequence of steps to Internally the undo/redo list includes a handle of the volume node it The undo/redo code is pretty simple: https://github.com/Slicer/Slicer/blob/master/Modules/Scripted/EditorLib/EditUtil.py#L509-L617 On Mon, Jul 25, 2016 at 10:59 AM, Christian Herz [email protected]
|
Oh sorry the other nightly version that I tried is from 04/26/2016. When creating a structure with that version and using PaintEffect/DrawEffect, the undo/redo buttons are not even enabled. I will add a list of steps, so that you can hopefully reproduce it. |
Until that point everything works just fine. Until that point everything works just fine for second created structure I have the feeling that the history of several structures is somehow mixed up I hope that works for reproducing |
Yes, I can see how that would get screwed up. I think the change required would be to add a method: def reset(self): at line 552 in [1] and then call it each time a different structure is Bigger question: are you planning to switch over to the Segment Editor [1] On Mon, Jul 25, 2016 at 11:53 AM, Christian Herz [email protected]
|
Steve, Ron was telling me there is no Undo/Redo in Segmentations. In any case, we will definitely wait for few months before considering to integrate. When I tried it, I had quite a few questions about how things worked there, and we can't commit resources to integrate it now anyway. |
True, there was no undo/redo in the segment editor last I talked with Anyway it's a very simple change to the Editor to implement what I On Tue, Jul 26, 2016 at 1:46 PM, Andrey Fedorov [email protected]
|
While using Pencil tool, undo doesn't seem to work.
The text was updated successfully, but these errors were encountered: