Skip to content

Fix CollisionLayers and ActiveCollisionHooks updates#953

Merged
Jondolf merged 2 commits into
mainfrom
fix-tree-updates
Mar 14, 2026
Merged

Fix CollisionLayers and ActiveCollisionHooks updates#953
Jondolf merged 2 commits into
mainfrom
fix-tree-updates

Conversation

@Jondolf

@Jondolf Jondolf commented Mar 14, 2026

Copy link
Copy Markdown
Member

Objective

CollisionLayers and ActiveCollisionHooks are updated in a Replace observer, but that gives the old value!

Solution

Change them to Insert observers.

Testing

Tested inserting different layers at runtime in collision_layers example.

@Jondolf Jondolf added this to the 0.6 milestone Mar 14, 2026
@Jondolf Jondolf added C-Bug Something isn't working A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality D-Straightforward Simple bug fixes and API improvements, docs, test and examples labels Mar 14, 2026
@Jondolf Jondolf marked this pull request as ready for review March 14, 2026 17:35
@Jondolf Jondolf enabled auto-merge (squash) March 14, 2026 17:37
@Jondolf Jondolf merged commit 6c4eafe into main Mar 14, 2026
6 checks passed
@Jondolf Jondolf deleted the fix-tree-updates branch March 14, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality C-Bug Something isn't working D-Straightforward Simple bug fixes and API improvements, docs, test and examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant