Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Fix recursive reactor render causing memory leak (#10860)
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField authored Aug 5, 2024
1 parent 36f1a3b commit 8950fa4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const ColliderComponent = defineComponent({
Physics.removeCollider(physicsWorld, entity)
hasCollider.set(false)
}
}, [physicsWorld, component.shape, rigidbodyComponent, transform.scale])
}, [physicsWorld, component.shape, rigidbodyEntity, !!rigidbodyComponent, transform.scale])

useLayoutEffect(() => {
if (!physicsWorld) return
Expand Down

0 comments on commit 8950fa4

Please sign in to comment.