Fix for inverted condition: hair data needs to be rebuilt when the
authorLukas Tönne <lukas.toenne@gmail.com>
Mon, 19 Jan 2015 17:44:56 +0000 (18:44 +0100)
committerLukas Tönne <lukas.toenne@gmail.com>
Tue, 20 Jan 2015 08:30:04 +0000 (09:30 +0100)
cloth DM does not exist.

source/blender/blenkernel/intern/particle_system.c

index e35858cc3efafb20dcbe6828c866db227114576f..877c2ccdec9875e9363b9dd562d2568ff5cf4ecb 100644 (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;