Skip to content

Fix Wall tool: wall sets crash, ID conflicts, straight walls and polygons - #85

Merged
kaczy93 merged 2 commits into
kaczy93:masterfrom
DavideRei:fix-wall-tool
Nov 23, 2026
Merged

kaczy93 merged 2 commits into
kaczy93:masterfrom
DavideRei:fix-wall-tool

Conversation

@DavideRei

Copy link
Copy Markdown
Contributor

Problems

  • Using wall sets throws, because the config value is initialised again on each access.
  • Wall sets aren't refreshed when the profile changes.
  • ImGui reports "items with conflicting ID": all slots use the same button label.
  • Straight walls end with the corner piece, leaving a perpendicular stub, and along X the last tile is placed twice.
  • Polygons have the same stubs, and holes at inner corners.
  • The list title loses its % ("(100):").

Fix

  • Initialise the config value once and refresh the names on Profile.Changed.
  • Push an ID for each slot.
  • Straight walls end with a wall piece.
  • Polygon pieces are derived from the south and east edge of each tile. For rectangles the result is the same as in rectangle mode.

Testing

  • Checked all 65,535 polygons on a 4x4 grid (no holes, stubs or duplicated tiles) and 324 rectangles against their polygon equivalent.
  • Builds on current master. The changes were tested in the app on a fork based on current master.

🤖 Generated with Claude Code

Fix the crash on wall sets, refresh them on profile change, give each slot
its own ImGui ID and fix straight walls and polygon corners.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kaczy93
kaczy93 merged commit be42c91 into kaczy93:master Nov 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants