diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-12-24 04:32:56 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-12-25 19:36:50 +0300 |
commit | 67dc68d104a5b2d62e49a94f2a26b0b28c94fac6 (patch) | |
tree | 79ce6602b273b62413cf796eecbf4042b81dd334 /source/blender/editors/mesh/editmesh_knife.c | |
parent | 34a538ba1b73e7a464d26dd3f5902774c7867766 (diff) |
Fix T59505: Knife tool cut preview line becomes black
The real reason for the problem is still unknown, but this solution adds less overhead than rBdafaa6f22881.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_knife.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index b89a7dd91a1..b85627dc146 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -1027,13 +1027,13 @@ static void knife_init_colors(KnifeColors *colors) /* possible BMESH_TODO: add explicit themes or calculate these by * figuring out contrasting colors with grid / edges / verts * a la UI_make_axis_color */ - UI_GetThemeColor3ubv(TH_NURB_VLINE, colors->line); - UI_GetThemeColor3ubv(TH_NURB_ULINE, colors->edge); - UI_GetThemeColor3ubv(TH_HANDLE_SEL_VECT, colors->curpoint); - UI_GetThemeColor3ubv(TH_HANDLE_SEL_VECT, colors->curpoint_a); + UI_GetThemeColorType3ubv(TH_NURB_VLINE, SPACE_VIEW3D, colors->line); + UI_GetThemeColorType3ubv(TH_NURB_ULINE, SPACE_VIEW3D, colors->edge); + UI_GetThemeColorType3ubv(TH_HANDLE_SEL_VECT, SPACE_VIEW3D, colors->curpoint); + UI_GetThemeColorType3ubv(TH_HANDLE_SEL_VECT, SPACE_VIEW3D, colors->curpoint_a); colors->curpoint_a[3] = 102; - UI_GetThemeColor3ubv(TH_ACTIVE_SPLINE, colors->point); - UI_GetThemeColor3ubv(TH_ACTIVE_SPLINE, colors->point_a); + UI_GetThemeColorType3ubv(TH_ACTIVE_SPLINE, SPACE_VIEW3D, colors->point); + UI_GetThemeColorType3ubv(TH_ACTIVE_SPLINE, SPACE_VIEW3D, colors->point_a); colors->point_a[3] = 102; } |