[Bf-blender-cvs] [965a49a] master: Fix: Forgot to set fill colour when drawing 2D filled strokes

Joshua Leung noreply at git.blender.org
Mon Dec 1 13:21:57 CET 2014


Commit: 965a49a3e693112bd812c27711e0de1d07a52e57
Author: Joshua Leung
Date:   Tue Dec 2 00:44:14 2014 +1300
Branches: master
https://developer.blender.org/rB965a49a3e693112bd812c27711e0de1d07a52e57

Fix: Forgot to set fill colour when drawing 2D filled strokes

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

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

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

diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c
index e79db77..84d4cb8 100644
--- a/source/blender/editors/gpencil/drawgpencil.c
+++ b/source/blender/editors/gpencil/drawgpencil.c
@@ -725,6 +725,7 @@ static void gp_draw_strokes(bGPDframe *gpf, int offsx, int offsy, int winx, int
 		else {
 			/* 2D - Fill */
 			if ((dflag & GP_DRAWDATA_FILL) && (gps->totpoints >= 3)) {
+				glColor4fv(fill_color);
 				gp_draw_stroke_fill(gps->points, gps->totpoints, lthick, dflag, gps->flag, offsx, offsy, winx, winy);
 			}




More information about the Bf-blender-cvs mailing list