Attempt to solve T41708,

Refresh always when clicking on a palette color (state here may be same
as state of button, not causing a refresh as it should)
This commit is contained in:
Antony Riakiotakis
2014-09-04 17:21:01 +02:00
parent a1578f08dc
commit 1fb50c5ca7

View File

@@ -4333,6 +4333,9 @@ static int ui_do_but_COLOR(bContext *C, uiBut *but, uiHandleButtonData *data, co
Palette *palette = but->rnapoin.id.data;
PaletteColor *color = but->rnapoin.data;
palette->active_color = BLI_findindex(&palette->colors, color);
/* enforce redraw, sometimes state here can already be exit */
ED_region_tag_redraw(data->region);
if (!event->ctrl) {
float color[3];