diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-03 20:31:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-03 20:31:46 +0400 |
commit | a2c182e9233333fc3b8ff40d352113ec95e7e30c (patch) | |
tree | 37a9e08f4e6c4bf794aa0c8c15af875299db4a1b /source/blender/editors/gpencil | |
parent | 86cec98f9e1523ed41b67ef998174289dbae9b83 (diff) |
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/drawgpencil.c | 8 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 19dc25dd282..5e9acc5b84f 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -517,10 +517,10 @@ static void gp_draw_strokes (bGPDframe *gpf, int offsx, int offsy, int winx, int /* first arg is normally rv3d->dist, but this isnt available here and seems to work quite well without */ bglPolygonOffset(1.0f, 1.0f); - /* +#if 0 glEnable(GL_POLYGON_OFFSET_LINE); glPolygonOffset(-1.0f, -1.0f); - */ +#endif } gp_draw_stroke_3d(gps->points, gps->totpoints, lthick, debug); @@ -530,10 +530,10 @@ static void gp_draw_strokes (bGPDframe *gpf, int offsx, int offsy, int winx, int glDisable(GL_DEPTH_TEST); bglPolygonOffset(0.0, 0.0); - /* +#if 0 glDisable(GL_POLYGON_OFFSET_LINE); glPolygonOffset(0, 0); - */ +#endif } } else if (gps->totpoints > 1) diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 673d7c637ff..c9d1f70aa65 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -104,8 +104,8 @@ typedef struct tGPsdata { short radius; /* radius of influence for eraser */ short flags; /* flags that can get set during runtime */ - float imat[4][4]; /* inverted transformation matrix applying when converting coords from screen-space - * to region space */ + float imat[4][4]; /* inverted transformation matrix applying when converting coords from screen-space + * to region space */ float custom_color[4]; /* custom color for (?) */ } tGPsdata; @@ -578,8 +578,8 @@ static void gp_stroke_newfrombuffer (tGPsdata *p) } /* special case for poly line -- for already added stroke during session - coordinates are getting added to stroke immediatelly to allow more - interactive behavior */ + * coordinates are getting added to stroke immediatelly to allow more + * interactive behavior */ if (p->paintmode == GP_PAINTMODE_DRAW_POLY) { if (p->flags & GP_PAINTFLAG_STROKEADDED) return; @@ -1148,7 +1148,7 @@ static int gp_session_initdata (bContext *C, tGPsdata *p) if (ED_gpencil_session_active()==0) { /* initialize undo stack, - also, existing undo stack would make buffer drawn */ + * also, existing undo stack would make buffer drawn */ gpencil_undo_init(p->gpd); } @@ -1369,7 +1369,7 @@ static void gp_paint_strokeend (tGPsdata *p) static void gp_paint_cleanup (tGPsdata *p) { /* p->gpd==NULL happens when stroke failed to initialize, - for example. when GP is hidden in current space (sergey) */ + * for example. when GP is hidden in current space (sergey) */ if (p->gpd) { /* finish off a stroke */ gp_paint_strokeend(p); |