[Bf-blender-cvs] [35d09c7] master: Fix for inverted condition: hair data needs to be rebuilt when the cloth DM does not exist.
Lukas Tönne
noreply at git.blender.org
Tue Jan 20 09:51:46 CET 2015
Commit: 35d09c7ab60cbac2c804be92b3e8a435d9184a8e
Author: Lukas Tönne
Date: Mon Jan 19 18:44:56 2015 +0100
Branches: master
https://developer.blender.org/rB35d09c7ab60cbac2c804be92b3e8a435d9184a8e
Fix for inverted condition: hair data needs to be rebuilt when the
cloth DM does not exist.
===================================================================
M source/blender/blenkernel/intern/particle_system.c
===================================================================
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index e35858c..877c2cc 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;
More information about the Bf-blender-cvs
mailing list