tested by building and running
Diff Detail
- Repository
- R37 Krita
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Hi, @shreyasr!
The problem happens because when the new mask is added to the image, the filter is applied again on that mask. I don't know why it happens (most probably, KisFilterManager is connected to some activeNodeChanged() signal, and it triggers restart of the preview). This behavior should be fixed by not allowing the dialog to restart the preview stroke, but not by just applying it and then undoing again :(
Hi, @shreyasr!
Could you check if the patch still works if Preview checkbox is disabled? As far as I remember, the purpose of this 'if' was to apply the filter if the preview was disabled.
I just tested. It doesn't apply the filter if the the Preview checkbox was disabled during the previous application of the filter. See the attached video:
The patch has been pushed by the author in e2813cef9b71c9b5553551a88cf4409274e17d75 :)