[Bf-blender-cvs] [bbc5429] GPencil_EditStrokes: Bugfix: Stroke buffer sometimes got drawn with wrong color (when doing initial strokes)
Joshua Leung
noreply at git.blender.org
Wed Nov 5 00:15:52 CET 2014
Commit: bbc54294dfb2547a4b50bcd5e3d124c460efc60b
Author: Joshua Leung
Date: Wed Nov 5 03:07:08 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rBbbc54294dfb2547a4b50bcd5e3d124c460efc60b
Bugfix: Stroke buffer sometimes got drawn with wrong color (when doing initial 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 3dfd66c..9098b3a 100644
--- a/source/blender/editors/gpencil/drawgpencil.c
+++ b/source/blender/editors/gpencil/drawgpencil.c
@@ -1018,6 +1018,9 @@ static void gp_draw_data(bGPdata *gpd, int offsx, int offsy, int winx, int winy,
if (ED_gpencil_session_active() && (gpl->flag & GP_LAYER_ACTIVE) &&
(gpf->flag & GP_FRAME_PAINT))
{
+ /* Set color for drawing buffer stroke - since this may not be set yet */
+ glColor4fv(gpl->color);
+
/* Buffer stroke needs to be drawn with a different linestyle
* to help differentiate them from normal strokes.
*
More information about the Bf-blender-cvs
mailing list