diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-19 20:44:56 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:04 +0300 |
commit | 35d09c7ab60cbac2c804be92b3e8a435d9184a8e (patch) | |
tree | 4cb4fccad63c38403ea98e24a244bfb0bec8b5e1 /source/blender | |
parent | 4a16242e6008d7573c52b39274a88f0713d1345f (diff) |
Fix for inverted condition: hair data needs to be rebuilt when the
cloth DM does not exist.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/particle_system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c index e35858cc3ef..877c2ccdec9 100644 --- a/source/blender/blenkernel/intern/particle_system.c +++ b/source/blender/blenkernel/intern/particle_system.c @@ -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; |