Commit: a9fbd3b23bf9e4ad6a3d96f8b9c8bfc646ba8049
Author: Lukas Tönne
Date:   Wed Dec 3 16:38:37 2014 +0100
Branches: strand_editmode
https://developer.blender.org/rBa9fbd3b23bf9e4ad6a3d96f8b9c8bfc646ba8049

Fix for brush radius, the Brush.size property is actually the radius and
not the diameter.

===================================================================

M       source/blender/editors/hair/hair_stroke.c

===================================================================

diff --git a/source/blender/editors/hair/hair_stroke.c 
b/source/blender/editors/hair/hair_stroke.c
index 12eb355..f93e919 100644
--- a/source/blender/editors/hair/hair_stroke.c
+++ b/source/blender/editors/hair/hair_stroke.c
@@ -111,7 +111,9 @@ BLI_INLINE bool test_inside_circle(HairToolData *data, 
BMVert *v, float radsq, f
 
 BLI_INLINE float factor_vertex(HairToolData *data, BMVert *v)
 {
-       const float rad = BKE_brush_size_get(data->scene, 
data->settings->brush) * 0.5f;
+       Scene *scene = data->scene;
+       Brush *brush = data->settings->brush;
+       const float rad = BKE_brush_size_get(scene, brush);
        const float radsq = rad*rad;
        
        float dist;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to