https://bugs.kde.org/show_bug.cgi?id=460109
Dmitry Kazakov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Latest Commit| |https://invent.kde.org/grap | |hics/krita/commit/9e0cf66b4 | |155d82963d5ebda5a713bc60ff8 | |543d Resolution|--- |FIXED --- Comment #3 from Dmitry Kazakov <[email protected]> --- Git commit 9e0cf66b4155d82963d5ebda5a713bc60ff8543d by Dmitry Kazakov. Committed on 05/04/2023 at 06:58. Pushed by dkazakov into branch 'master'. Rewrite Cumulative Undo to make it more robust and understandable for the user The original implementation of cumulative undo was based on undo stack indexes, which could be easily messed up when the commands are merged/ pushed out using the undo limit. This new implementation removes all the saved indexes and calculated the invariants on-the-fly. The patch also changed the semantics of cumulative undo a little bit. Now the meaning of options is greatly simplified: 1) Krita starts to merge strokes which are deeper than N steps in the undo history or which are older than T1 seconds. 2) The strokes are considered to belong to the same group if the separation between them is smaller than T2 seconds. M +2 -0 libs/command/CMakeLists.txt M +94 -98 libs/command/kundo2stack.cpp M +10 -10 libs/command/kundo2stack.h A +10 -0 libs/command/tests/CMakeLists.txt A +303 -0 libs/command/tests/TestKUndo2Stack.cpp [License: GPL(v2.0+)] A +23 -0 libs/command/tests/TestKUndo2Stack.h [License: GPL(v2.0+)] M +9 -9 libs/image/commands_new/kis_saved_commands.cpp M +9 -7 libs/image/commands_new/kis_saved_commands.h M +40 -16 plugins/dockers/historydocker/DlgConfigureHistoryDock.cpp https://invent.kde.org/graphics/krita/commit/9e0cf66b4155d82963d5ebda5a713bc60ff8543d -- You are receiving this mail because: You are watching all bug changes.
