Repository navigation
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 747292e. Configure here.
|
Hi @atyrode, thanks for this, and sorry it sat for a bit. The opt-in resolver is a small, clean way to let hosts restyle cut-away walls without forking the wall kind. One thing to sort out before it can go in: Bugbot's finding on |
747292e to
b773bdf
Compare
|
Yes, thanks for the review. Rebased on
Locally: |
b773bdf to
6309d8a
Compare
Aymericr
left a comment
There was a problem hiding this comment.
Thanks @atyrode, and sorry for the wait after your rebases. This addresses the earlier finding: WallBatchSystem now treats the active resolver as an appearance input, so a swap disposes the merged batches and re-sews from the new materials, the same way a theme switch does. The new test shows a batched level picking up the restyled material. useSyncExternalStore keeps WallCutout in step, and setWallMaterialsResolver(null) restores the curtain-aware default.
The branch still merges cleanly into current main, and Bugbot is clean at 6309d8a.
LGTM. CI for this fork is waiting on maintainer approval to run; it can merge once that's green.

WallCutoutalready accepts amaterialResolver, butWallSystemshard-wiresgetCurtainAwareWallMaterials, so a host cannot restyle cut-away walls without forking the wall kind (plugins cannot re-registerwall).This adds
setWallMaterialsResolver(resolver | null), read byWallSystemsthroughuseSyncExternalStore(nullrestores the default), and exportsgetCurtainAwareWallMaterialsso a host can wrap the default and replace one variant — for example a low stub in place of the translucent film for cut walls.No behaviour change by default.
bun run check-types --filter=@pascal-app/nodes: passesNote
Low Risk
Default behavior is unchanged; changes are an optional host hook plus batch invalidation when the resolver changes.
Overview
Hosts can now override how WallCutout picks wall material variants (visible, cut-away, translucent, delete) without forking the wall node kind.
setWallMaterialsResolver(resolver | null)registers a globalWallMaterialsResolver(default unchanged:getCurtainAwareWallMaterials).WallSystemssubscribes viauseSyncExternalStoreand passes the active resolver intoWallCutout.getCurtainAwareWallMaterialsis exported so hosts can wrap the default and tweak one variant (e.g. cut-away styling).WallBatchSystemtreats a resolver swap like other appearance inputs (themes, textures, material library), so merged per-level wall batches re-sew instead of keeping stale materials. A new test covers that re-sew path.Reviewed by Cursor Bugbot for commit 6309d8a. Bugbot is set up for automated code reviews on this repo. Configure here.