Fix for inverted condition: hair data needs to be rebuilt when the

cloth DM does not exist.
This commit is contained in:
Lukas Tönne 2015-01-19 18:44:56 +01:00
parent 4a16242e60
commit 35d09c7ab6
1 changed files with 1 additions and 1 deletions

View File

@ -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;