Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-03-11 14:19:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-11 14:19:59 +0400
commitced595a37d373e9a27f2ac0ed24f975dfdab4818 (patch)
treee756a7325d0a1fbee6f5a6b782fb90b799ffcb47 /source/blender
parentdf5cbfb6253b10763375e3c86e827a1a34700231 (diff)
Fix T39087: Weight Paint, custom color ranges don't update in viewport
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/interface/interface_templates.c4
1 files changed, 4 insertions, 0 deletions
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);
}
}
}