Skip to content

fix(hud): make undo and redo step through one action at a time - #1364

Merged
Deftu merged 5 commits into
Polyfrost:v1from
Tellinq:fix/undo-redo
Nov 17, 2026
Merged

Deftu merged 5 commits into
Polyfrost:v1from
Tellinq:fix/undo-redo

Conversation

@Tellinq

@Tellinq Tellinq commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Description

Undo in the HUD editor could jump back to the state from when the editor was opened instead of just the previous action.

  • Options holding arrays (like colors) never matched their own snapshot, so edits were never recorded. They are now compared by content.
  • Drags started right after another one were merged into a single step. Each gesture is now its own step.

Related Issue(s)

Fixes #1305

Checklist

  • I made a clear description of what was changed
  • I stated why these changes were necessary
  • I updated documentation or said what needs to be updated
  • I made sure these changes are backwards compatible
  • This pull request is for one feature/bug fix

@Tellinq
Tellinq force-pushed the fix/undo-redo branch 8 times, most recently from 0c40d03 to ba4393d Compare November 16, 2026 01:40
@Deftu
Deftu merged commit dcd8868 into Polyfrost:v1 Nov 17, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: undoing in hud editor

2 participants