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:
authorCampbell Barton <ideasman42@gmail.com>2010-01-14 11:53:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-14 11:53:10 +0300
commitc1f2fd0a464c62e01e78f3b8f544219fa087ffc2 (patch)
tree4935c55ebf8218c463c4d0ba6ace71e86cd13c89 /source/blender/blenkernel/intern/particle_system.c
parent72b14be4609fd3d9717fcc0a8b59c9c0644032ad (diff)
particle weight brush back (mostly the same as in 2.4x), needed to control long hairs movement.
Diffstat (limited to 'source/blender/blenkernel/intern/particle_system.c')
-rw-r--r--source/blender/blenkernel/intern/particle_system.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index 27e0c632a81..acdab80bb37 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -3071,10 +3071,8 @@ static void do_hair_dynamics(ParticleSimulationData *sim)
dvert->dw = MEM_callocN (sizeof(MDeformWeight), "deformWeight");
dvert->totweight = 1;
}
-
- /* no special reason for the 0.5 */
- /* just seems like a nice value from experiments */
- dvert->dw->weight = k ? 0.5f : 1.0f;
+ /* roots should be 1.0, the rest can be anything from 0.0 to 1.0 */
+ dvert->dw->weight = key->weight;
dvert++;
}
}