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/editors/space_view3d/drawobject.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/editors/space_view3d/drawobject.c')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 8e269d98014..dd43c34c4dc 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -3812,6 +3812,12 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, RegionView3D *rv3d, Obj
glEnable(GL_COLOR_MATERIAL);
glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
+ if(pset->brushtype == PE_BRUSH_WEIGHT) {
+ glLineWidth(2.0f);
+ glDisable(GL_LIGHTING);
+ /* TODO, nice color blending */
+ }
+
cache=edit->pathcache;
for(i=0; i<totpoint; i++){
path = cache[i];