[Bf-blender-cvs] [034cc85] master: Fix T46186: Panel doesn't update on brush change

Campbell Barton noreply at git.blender.org
Mon Sep 21 02:38:18 CEST 2015


Commit: 034cc855f0abf265f84b3d1ffdfc65a401fd94bc
Author: Campbell Barton
Date:   Mon Sep 21 10:32:14 2015 +1000
Branches: master
https://developer.blender.org/rB034cc855f0abf265f84b3d1ffdfc65a401fd94bc

Fix T46186: Panel doesn't update on brush change

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

M	source/blender/editors/space_image/space_image.c

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

diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index 98a0752..97e3390 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -919,7 +919,8 @@ static void image_tools_area_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa),
 				ED_region_tag_redraw(ar);
 			break;
 		case NC_BRUSH:
-			if (wmn->action == NA_EDITED)
+			/* NA_SELECTED is used on brush changes */
+			if (ELEM(wmn->action, NA_EDITED, NA_SELECTED))
 				ED_region_tag_redraw(ar);
 			break;
 		case NC_SCENE:




More information about the Bf-blender-cvs mailing list