Open kroltan opened 11 months ago
This is currently not supported as With
is an acyclic relationship- for this exact reason, so that the code doesn't have to worry about cycle detection, which comes at a cost. It would be nice to have though, I'll keep this issue open as an enhancement.
Describe the bug If two components
A
andB
exist, that have a pair(With, $other)
, then adding the component to an entity enters into a seemingly infinite recursion and segfaults.To Reproduce
Expected behavior Adding either component adds the other.
Additional context Using flecs commit 5030db9356927cd5718c128d8911635c44fec537