From ced595a37d373e9a27f2ac0ed24f975dfdab4818 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 11 Mar 2014 21:19:59 +1100 Subject: [PATCH] Fix T39087: Weight Paint, custom color ranges don't update in viewport --- source/blender/editors/interface/interface_templates.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index dcfb2e5cfbc..cdaecc62f0f 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -1524,6 +1524,8 @@ static void colorband_buttons_layout(uiLayout *layout, uiBlock *block, ColorBand row = uiLayoutRow(layout, false); uiItemR(row, &ptr, "color", 0, "", ICON_NONE); + bt = block->buttons.last; + uiButSetNFunc(bt, rna_update_cb, MEM_dupallocN(cb), NULL); } else { split = uiLayoutSplit(layout, 0.5f, false); @@ -1539,6 +1541,8 @@ static void colorband_buttons_layout(uiLayout *layout, uiBlock *block, ColorBand row = uiLayoutRow(split, false); uiItemR(row, &ptr, "color", 0, "", ICON_NONE); + bt = block->buttons.last; + uiButSetNFunc(bt, rna_update_cb, MEM_dupallocN(cb), NULL); } } }