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:
authorAntony Riakiotakis <kalast@gmail.com>2014-09-04 19:21:01 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-09-04 19:21:01 +0400
commit1fb50c5ca7976f23f53c5e8a9fb932c398bdda6c (patch)
treeb9793ec7eac1f73499caa3fe68b9d08544e19b99 /source/blender/editors/interface/interface_handlers.c
parenta1578f08dc442b0c64f05a1ab18ef0fd90a9f6e4 (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)
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r--source/blender/editors/interface/interface_handlers.c3
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];