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/interface/resources.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/interface/resources.c')
-rw-r--r-- | source/blender/editors/interface/resources.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index 09b8933206e..a30dde38852 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -1118,6 +1118,16 @@ void UI_GetThemeColor4ubv(int colorid, unsigned char col[4]) col[3] = cp[3]; } +void UI_GetThemeColorType3ubv(int colorid, int spacetype, char col[3]) +{ + const unsigned char *cp; + + cp = UI_ThemeGetColorPtr(theme_active, spacetype, colorid); + col[0] = cp[0]; + col[1] = cp[1]; + col[2] = cp[2]; +} + void UI_GetThemeColorType4ubv(int colorid, int spacetype, char col[4]) { const unsigned char *cp; |