diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-05-15 20:34:55 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-05-15 20:34:55 +0400 |
commit | 9bbe42a4d8621a6034adaaa8636491b8ed66213f (patch) | |
tree | d66ad71edc2be55355b119b7bbdb247283444592 /source/blender | |
parent | 295c37caa406240993ec42bdf698584527950c16 (diff) |
Mask vertex colors used to be totally ignored
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/mask/mask_draw.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c index 5c9df32c6b3..c2b949f6acb 100644 --- a/source/blender/editors/mask/mask_draw.c +++ b/source/blender/editors/mask/mask_draw.c @@ -213,10 +213,10 @@ static void draw_single_handle(const MaskLayer *mask_layer, const MaskSplinePoin if (point == mask_layer->act_point) glColor3f(1.0f, 1.0f, 1.0f); else - glColor3f(1.0f, 1.0f, 0.0f); + UI_ThemeColor(TH_HANDLE_VERTEX_SELECT); } else { - glColor3f(0.5f, 0.5f, 0.0f); + UI_ThemeColor(TH_HANDLE_VERTEX); } draw_circle(handle_pos[0], handle_pos[1], handle_size, xscale, yscale); @@ -280,10 +280,10 @@ static void draw_spline_points(const bContext *C, MaskLayer *masklay, MaskSpline if (point == masklay->act_point) glColor3f(1.0f, 1.0f, 1.0f); else - glColor3f(1.0f, 1.0f, 0.0f); + UI_ThemeColor(TH_HANDLE_VERTEX_SELECT); } else { - glColor3f(0.5f, 0.5f, 0.0f); + UI_ThemeColor(TH_HANDLE_VERTEX); } glBegin(GL_POINTS); @@ -346,10 +346,10 @@ static void draw_spline_points(const bContext *C, MaskLayer *masklay, MaskSpline if (point == masklay->act_point) glColor3f(1.0f, 1.0f, 1.0f); else - glColor3f(1.0f, 1.0f, 0.0f); + UI_ThemeColor(TH_HANDLE_VERTEX_SELECT); } else - glColor3f(0.5f, 0.5f, 0.0f); + UI_ThemeColor(TH_HANDLE_VERTEX); glBegin(GL_POINTS); glVertex2fv(vert); |