Fix for inverted condition: hair data needs to be rebuilt when the
cloth DM does not exist.
This commit is contained in:
parent
4a16242e60
commit
35d09c7ab6
|
@ -4184,7 +4184,7 @@ static void do_hair_dynamics(ParticleSimulationData *sim)
|
|||
}
|
||||
}
|
||||
|
||||
if (psys->hair_in_dm || !psys->clmd->roots || realloc_roots) {
|
||||
if (!psys->hair_in_dm || !psys->clmd->roots || realloc_roots) {
|
||||
if (psys->clmd->roots) {
|
||||
MEM_freeN(psys->clmd->roots);
|
||||
psys->clmd->roots = NULL;
|
||||
|
|
Loading…
Reference in New Issue