Skip to content

Make it possible to define multiple selectionRules for a block - #2987

Merged
IntegratedQuantum merged 15 commits into
PixelGuys:masterfrom
DellieDelta:selection-rule-to-selection-rules
May 8, 2026
Merged

IntegratedQuantum merged 15 commits into
PixelGuys:masterfrom
DellieDelta:selection-rule-to-selection-rules

Conversation

@DellieDelta

@DellieDelta DellieDelta commented Apr 27, 2026 •

Copy link
Copy Markdown
Contributor

Related: #2983

To make both the selectionRules .toolEffective and .placeable possible on the same block, in preparation for adding buckets (#627)

Also rename it to selectionCapabilities, because it's clearer that any being true will lead to the block being selected

@Wunka Wunka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe never can just be the empty list?
But you don't have to follow up on that.

Comment thread src/blocks.zig Outdated
@DellieDelta

Copy link
Copy Markdown
Contributor Author

Maybe never can just be the empty list? But you don't have to follow up on that.

Good idea! Then the whole check can go. It's a valid state anyway

@DellieDelta
DellieDelta requested a review from Wunka May 2, 2026 11:44
@DellieDelta
DellieDelta force-pushed the selection-rule-to-selection-rules branch from b8fc50e to 11401d4 Compare May 2, 2026 12:02
Comment thread src/blocks.zig Outdated
@DellieDelta
DellieDelta requested a review from Wunka May 3, 2026 19:52
Comment thread src/blocks.zig Outdated
Comment thread src/blocks.zig Outdated
Comment thread src/blocks.zig Outdated
Comment thread src/blocks.zig Outdated
Comment thread src/blocks.zig Outdated
Comment thread src/blocks.zig Outdated
@DellieDelta
DellieDelta force-pushed the selection-rule-to-selection-rules branch from 771b0e1 to 98dce60 Compare May 7, 2026 15:23
@DellieDelta
DellieDelta force-pushed the selection-rule-to-selection-rules branch from 98dce60 to 951867d Compare May 7, 2026 15:33
Comment thread src/blocks.zig Outdated
Comment thread src/blocks.zig Outdated
Comment thread src/blocks.zig Outdated
@IntegratedQuantum
IntegratedQuantum merged commit 04eb793 into PixelGuys:master May 8, 2026
1 check passed
@DellieDelta
DellieDelta deleted the selection-rule-to-selection-rules branch May 17, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants