Skip to content

Reject unknown kit collection names - #2

Open
kvnloo wants to merge 1 commit into
achrefelouafi:mainfrom
kvnloo:fix/kit-mesh-name-validation
Open

Reject unknown kit collection names#2
kvnloo wants to merge 1 commit into
achrefelouafi:mainfrom
kvnloo:fix/kit-mesh-name-validation

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 2, 2026

Copy link
Copy Markdown

Kit.count used children.length || 1 for missing collections. A typo'd mesh name (e.g. ground side wall vs the live Blender spelling groud side wall) compiled to COL[typo][0] and vanished at instance time with only a console warning.

This throws on unknown/empty collection names, parses COL[name][index] / OBJ[name], and pins every COL()/OBJ() in generator.ts against public/assets/kit_manifest.json.

Not the facade-lights port (fork PR #1 / PER-361). README 18-slider claim untouched.

Verify: npx tsc --noEmit and npx tsx --test tools/kitNames.test.ts.

Kit.count returned 1 for a missing collection (|| 1), so a typo compiled to COL[typo][0] and dropped at instance time. Throw instead, and pin generator COL/OBJ names against kit_manifest.json.
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.

1 participant