The oven would "leak" entity if its max_theta is larger than zero.
Cause
An empty entity is created on line 212, which is before the line where whether the atom should be created is checked (line 216). If a non-zero max_theta is found, the omitted atoms will leave empty entities that are never deleted and thus causing entities to "leak".
Description of the bug
The oven would "leak" entity if its
max_theta
is larger than zero.Cause
An empty entity is created on line 212, which is before the line where whether the atom should be created is checked (line 216). If a non-zero
max_theta
is found, the omitted atoms will leave empty entities that are never deleted and thus causing entities to "leak".https://github.com/TeamAtomECS/AtomECS/blob/c4a0fa4333c75481faffc563e84b107ed4055825/src/atom_sources/oven.rs#L212
https://github.com/TeamAtomECS/AtomECS/blob/c4a0fa4333c75481faffc563e84b107ed4055825/src/atom_sources/oven.rs#L216