[Bf-blender-cvs] [1fb50c5] master: Attempt to solve T41708,

Antony Riakiotakis noreply at git.blender.org
Thu Sep 4 17:21:07 CEST 2014


Commit: 1fb50c5ca7976f23f53c5e8a9fb932c398bdda6c
Author: Antony Riakiotakis
Date:   Thu Sep 4 17:21:01 2014 +0200
Branches: master
https://developer.blender.org/rB1fb50c5ca7976f23f53c5e8a9fb932c398bdda6c

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)

===================================================================

M	source/blender/editors/interface/interface_handlers.c

===================================================================

diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 05305e2..9818a59 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];




More information about the Bf-blender-cvs mailing list