Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Conversation

@Peechey
Copy link
Contributor

@Peechey Peechey commented Jan 18, 2025

Fixes #302

Description of the problem being solved:

The createUndoState for Spec wasn't copying the hashOverrides correctly, so if you control-z after decallocated any attribute node, it reallocates as an empty Attribute and not whichever was set before.

Steps taken to verify a working solution:

  • Deallocate attribute node
  • Ctrl-Z
  • Validate previous attribute stat is reallocated
  • Single attribute node, long path of nodes, goldilocks length of nodes
  • After undoing a deallocation, save and load a validate all nodes are still correct/hashOverrides are correct

Before screenshot:

attributeUndoBad

After screenshot:

attributeUndo

@Peechey Peechey added the bug: behaviour Behavioral differences label Jan 18, 2025
@LocalIdentity LocalIdentity merged commit 286d361 into PathOfBuildingCommunity:dev Jan 18, 2025
1 of 2 checks passed
@LocalIdentity LocalIdentity changed the title Fix undoing attribute nodes Fix Ctrl + Z & Ctrl + Y not saving the allocated attribute stats Jan 18, 2025
@Peechey Peechey deleted the fix/attribute-undo-state branch January 19, 2025 05:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug: behaviour Behavioral differences

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ctrl+Z after accidentally unallocating entire path, doesn't reset attribute nodes properly.

2 participants