[Bf-blender-cvs] [574e859] blender-v2.76-release: Fix T46186: Panel doesn't update on brush change
Campbell Barton
noreply at git.blender.org
Wed Sep 23 16:12:04 CEST 2015
Commit: 574e859e387ef5c4a44b78530ea86ff8d9b63cbd
Author: Campbell Barton
Date: Mon Sep 21 10:32:14 2015 +1000
Branches: blender-v2.76-release
https://developer.blender.org/rB574e859e387ef5c4a44b78530ea86ff8d9b63cbd
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