From 53d9ddf772be064bcde132b1f79ed2239f74b741 Mon Sep 17 00:00:00 2001 From: Charlie Jolly Date: Mon, 19 Nov 2018 16:15:05 +0000 Subject: 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 --- source/blender/blenkernel/intern/colorband.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenkernel/intern/colorband.c') 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( -- cgit v1.2.3