diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-01-03 08:07:05 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-01-03 15:17:50 +0300 |
commit | c50003cd09ab8d3477406f58f00e530e5e67b45f (patch) | |
tree | ffbb83f8e9b9d18d4a93c38114a0fffd3e8ef16a /source/blender/editors/gpencil | |
parent | b137f06d7ecc7beae3b9fbeba0a71b324198c7e2 (diff) |
Grease Pencil: Vertex size and colours are now themable
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/drawgpencil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index f7795a3c2e4..895fc6608e2 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -794,7 +794,7 @@ static void gp_draw_strokes_edit(bGPDframe *gpf, int offsx, int offsy, int winx, * they stand out more. * - We use the theme setting for size of the unselected verts */ - bsize = UI_GetThemeValuef(TH_VERTEX_SIZE); + bsize = UI_GetThemeValuef(TH_GP_VERTEX_SIZE); if ((int)bsize > 8) { vsize = 10.0f; bsize = 8.0f; @@ -810,7 +810,7 @@ static void gp_draw_strokes_edit(bGPDframe *gpf, int offsx, int offsy, int winx, } else { /* this doesn't work well with the default theme and black strokes... */ - UI_ThemeColor(TH_VERTEX); + UI_ThemeColor(TH_GP_VERTEX); } glPointSize(bsize); @@ -830,7 +830,7 @@ static void gp_draw_strokes_edit(bGPDframe *gpf, int offsx, int offsy, int winx, /* Second Pass: Draw only verts which are selected */ - UI_ThemeColor(TH_VERTEX_SELECT); + UI_ThemeColor(TH_GP_VERTEX_SELECT); glPointSize(vsize); glBegin(GL_POINTS); @@ -841,7 +841,7 @@ static void gp_draw_strokes_edit(bGPDframe *gpf, int offsx, int offsy, int winx, } else { float co[2]; - + gp_calc_2d_stroke_xy(pt, gps->flag, offsx, offsy, winx, winy, co); glVertex2fv(co); } |