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.
*
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs