Support lanes: destroy clears a drop's name for a destroyed solid; the destroy write, every well particle and all three sheet drops are asserted

Closes lodur:follow_up:ymir-fluid-support-s1-lows (findings destroy-clear-unclaimed, well-fluid-class-thin).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-25 04:16:34 +01:00
commit 0ccedf22dc
2 changed files with 42 additions and 14 deletions

View file

@ -850,6 +850,13 @@ int32_t ymir_particles_destroy_particles(ymir_particles* p, int32_t n, const ymi
p->particle_removed_at[i] = step_count;
p->live_particles--;
}
for (int32_t i = 0; i < p->particle_count; ++i)
{
if (p->particle_live[i] && p->support_particle[i] >= 0 && !p->particle_live[p->support_particle[i]])
{
p->support_particle[i] = -1; // a drop does not keep resting on a solid destroyed under it until the next step
}
}
return rederive_topology(p, held ? TOPO_FULL : TOPO_ISOLATED, p->queue, killed);
}