[Bf-blender-cvs] [008ed839f49] blender2.8: GP: Fix problem with brush angle parameter

Antonioya noreply at git.blender.org
Wed Sep 12 10:37:22 CEST 2018


Commit: 008ed839f49726ca1f544edcfed02cf95e9fd133
Author: Antonioya
Date:   Wed Sep 12 10:36:12 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB008ed839f49726ca1f544edcfed02cf95e9fd133

GP: Fix problem with brush angle parameter

The angle was related to random settings, but this is wrong.

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

M	source/blender/editors/gpencil/gpencil_paint.c

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 14b7bfc4e1c..53b58cd6dd9 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -664,8 +664,7 @@ static short gp_stroke_addpoint(
 		}
 
 		/* apply angle of stroke to brush size */
-		if ((brush->gpencil_settings->flag & GP_BRUSH_GROUP_RANDOM) &&
-		    (brush->gpencil_settings->draw_angle_factor > 0.0f))
+		if (brush->gpencil_settings->draw_angle_factor != 0.0f)
 		{
 			gp_brush_angle(gpd, brush, pt, mval);
 		}



More information about the Bf-blender-cvs mailing list