diff options
author | Charlie Jolly <mistajolly@gmail.com> | 2018-11-19 19:15:05 +0300 |
---|---|---|
committer | Charlie Jolly <mistajolly@gmail.com> | 2018-11-20 20:02:31 +0300 |
commit | 53d9ddf772be064bcde132b1f79ed2239f74b741 (patch) | |
tree | cba302a5fc30f1453656cf098dfa702326020677 /source/blender/blenkernel/intern/colorband.c | |
parent | 23656d01d8439006ccda12e19d34d1f537604d77 (diff) |
UI: Color Ramp: Add menu and functions to distribute color stops
Suggestion from Right-Click Select: https://blender.community/c/rightclickselect/Npcbbc/color-ramp-flags-auto-distribution-function
Differential Revision: https://developer.blender.org/D3965
Diffstat (limited to 'source/blender/blenkernel/intern/colorband.c')
-rw-r--r-- | source/blender/blenkernel/intern/colorband.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/colorband.c b/source/blender/blenkernel/intern/colorband.c index 38631c76009..7fc1124a422 100644 --- a/source/blender/blenkernel/intern/colorband.c +++ b/source/blender/blenkernel/intern/colorband.c @@ -78,7 +78,9 @@ void BKE_colorband_init(ColorBand *coba, bool rangetype) } coba->tot = 2; + coba->cur = 0; coba->color_mode = COLBAND_BLEND_RGB; + coba->ipotype = COLBAND_INTERP_LINEAR; } static void colorband_init_from_table_rgba_simple( |