Skip to content
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 system improvements #1419

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d37dea5
Fix debug builds
ergeysay Jun 3, 2022
d6b6176
Initial implementation of composable history operations
ergeysay Jun 3, 2022
ad7a38a
Make layer ids monotonically increasing and stable across undo, redo …
ergeysay Jun 4, 2022
461733a
Fix undoing Merge Group
ergeysay Jun 4, 2022
6976601
Skip nested undo steps correctly
ergeysay Jun 5, 2022
123abe5
Simplify history a bit and fix undo logic for Merge Group
ergeysay Jun 5, 2022
31416a1
Fix layer naming in UI
ergeysay Jun 5, 2022
f877e55
Always restore the top layer when undoing Merge Down
ergeysay Jun 5, 2022
5e40bd5
Fix undoing Mege Group with a single child
ergeysay Jun 5, 2022
b50f282
Fix the order of restored child layers during undo of Merge Group
ergeysay Jun 6, 2022
1685551
Preserve fill layer when swapping layers
ergeysay Jun 12, 2022
49f1b0b
Start refactoring undo implementation for Apply Mask
ergeysay Jun 12, 2022
36ad31d
Fix undo for applying masks when undoing Merge Down
ergeysay Jun 12, 2022
2671353
Preserve order when restoring masks after flattening a layer
ergeysay Jun 12, 2022
248457b
Fix redo implementation for Merge Layers
ergeysay Jun 13, 2022
84a4feb
Make undo implementation for Apply Mask work in-place
ergeysay Jun 13, 2022
7abb505
Revert relative layer positioning in history
ergeysay Jun 17, 2022
eef0dc3
Fix undoing Apply Mask on zeroth layer
ergeysay Jun 20, 2022
2b65ff9
Fix undoing Merge Group if the bottom layer has masks
ergeysay Jun 21, 2022
a0657a3
Increase initial undo steps number to 32
ergeysay Jun 21, 2022
d3852b8
Add debug traces for history operations
ergeysay Jun 21, 2022
c026984
Rename some undo actions
ergeysay Jun 21, 2022
9e56ee9
Implement redo for Merge Group action
ergeysay Jun 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/arm/App.hx
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ class App {
raw.keymap = "default.json";
raw.theme = "default.json";
raw.server = "https://armorpaint.fra1.digitaloceanspaces.com";
raw.undo_steps = 4;
raw.undo_steps = 32;
raw.pressure_radius = true;
raw.pressure_hardness = true;
raw.pressure_angle = false;
Expand Down
Loading