diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-09-04 19:21:01 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-09-04 19:21:01 +0400 |
commit | 1fb50c5ca7976f23f53c5e8a9fb932c398bdda6c (patch) | |
tree | b9793ec7eac1f73499caa3fe68b9d08544e19b99 | |
parent | a1578f08dc442b0c64f05a1ab18ef0fd90a9f6e4 (diff) |
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)
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 05305e2e5cd..9818a593174 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -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]; |