Fix T39087: Weight Paint, custom color ranges don't update in viewport

This commit is contained in:
Campbell Barton
2014-03-11 21:19:59 +11:00
parent df5cbfb625
commit ced595a37d

View File

@@ -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);
}
}
}