mbrown1413 / Mechanical-Puzzle-Studio

The Swiss Army knife of mechanical puzzle design.
https://puzzlestudio.io/
Mozilla Public License 2.0
1 stars 0 forks source link

[UI] Piece bounds unexpectedly removes voxels in intermediate edits #81

Open mbrown1413 opened 5 months ago

mbrown1413 commented 5 months ago

For example, set a piece's bounds to 10 by typing "1" then "0" in the bounds for an axis. After the "1" it will delete any voxels outside the bounds of 1.

To solve this we could either keep voxels around even if outside the bounds, or we could restore the voxels once another bounds edit has been made. I'm inclined to do the later, as having extra voxels that are present in the data structure but not logically part of the piece or displayed in any way could get confusing.

This could be implemented by #8, allowing actions to undo themselves before combining with the previous action.