Commit: 32db28d08a68e6092a4b420875720710e3641183
Author: Joshua Leung
Date: Tue Oct 28 15:37:15 2014 +1300
Branches: GPencil_FillStrokes
https://developer.blender.org/rB32db28d08a68e6092a4b420875720710e3641183
Code cleanup: Tidy up some stuff from previous commit
===================================================================
M source/blender/editors/gpencil/drawgpencil.c
===================================================================
diff --git a/source/blender/editors/gpencil/drawgpencil.c
b/source/blender/editors/gpencil/drawgpencil.c
index 972b2f6..59614df 100644
--- a/source/blender/editors/gpencil/drawgpencil.c
+++ b/source/blender/editors/gpencil/drawgpencil.c
@@ -149,10 +149,10 @@ static void gp_draw_stroke_buffer(tGPspoint *points, int
totpoints, short thickn
/* ----------- Volumetric Strokes --------------- */
-/* draw a 2D stroke in "volumetric" style
- * NOTE: this is currently only for drawing the stroke buffer, which doesn't
have any coordinate offsets/transforms
+/* draw a 2D buffer stroke in "volumetric" style
+ * NOTE: the stroke buffer doesn't have any coordinate offsets/transforms
*/
-static void gp_draw_stroke_volumetric_2d(tGPspoint *points, int totpoints,
short thickness, short dflag, short sflag)
+static void gp_draw_stroke_volumetric_buffer(tGPspoint *points, int totpoints,
short thickness, short dflag, short sflag)
{
GLUquadricObj *qobj = gluNewQuadric();
float modelview[4][4];
@@ -170,7 +170,7 @@ static void gp_draw_stroke_volumetric_2d(tGPspoint *points,
int totpoints, short
return;
- /* get basic matrix - should be camera space (i.e ."identity") */
+ /* get basic matrix - should be camera space (i.e "identity") */
glGetFloatv(GL_MODELVIEW_MATRIX, (float *)modelview);
@@ -922,7 +922,7 @@ static void gp_draw_data(bGPdata *gpd, int offsx, int
offsy, int winx, int winy,
{
/* Buffer stroke needs to be drawn with a different
linestyle
* to help differentiate them from normal strokes. */
- gp_draw_stroke_volumetric_2d(gpd->sbuffer,
gpd->sbuffer_size, lthick, dflag, gpd->sbuffer_sflag);
+ gp_draw_stroke_volumetric_buffer(gpd->sbuffer,
gpd->sbuffer_size, lthick, dflag, gpd->sbuffer_sflag);
gp_draw_stroke_buffer(gpd->sbuffer, gpd->sbuffer_size,
lthick, dflag, gpd->sbuffer_sflag);
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs