diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-11-12 16:03:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-12 16:03:12 +0300 |
commit | 46f452e96baaf9424582003e87736840ccbbffca (patch) | |
tree | 473504617269380df580b584854b6ef8feaad570 /source/blender/editors/include | |
parent | 833ef0cfdd0ac9154f018c17a80ca8cdc7c15bc9 (diff) |
Fix error cutting node links
Accessing theme from outside drawing code isn't reliable, pass space-type.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_resources.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_resources.h b/source/blender/editors/include/UI_resources.h index 2b19b6180e5..cd68425cc33 100644 --- a/source/blender/editors/include/UI_resources.h +++ b/source/blender/editors/include/UI_resources.h @@ -334,6 +334,9 @@ void UI_ThemeColorBlendShadeAlpha(int colorid1, int colorid2, float fac, int float UI_GetThemeValuef(int colorid); int UI_GetThemeValue(int colorid); +float UI_GetThemeValueTypef(int colorid, int spacetype); +int UI_GetThemeValueType(int colorid, int spacetype); + // get three color values, scaled to 0.0-1.0 range void UI_GetThemeColor3fv(int colorid, float col[3]); void UI_GetThemeColorBlend3ubv(int colorid1, int colorid2, float fac, unsigned char col[3]); |