Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2015-01-19 20:44:56 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-01-20 11:30:04 +0300
commit35d09c7ab60cbac2c804be92b3e8a435d9184a8e (patch)
tree4cb4fccad63c38403ea98e24a244bfb0bec8b5e1 /source/blender/blenkernel
parent4a16242e6008d7573c52b39274a88f0713d1345f (diff)
Fix for inverted condition: hair data needs to be rebuilt when the
cloth DM does not exist.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/particle_system.c2
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;