Fix T46186: Panel doesn't update on brush change

This commit is contained in:
Campbell Barton 2015-09-21 10:32:14 +10:00 committed by Sergey Sharybin
parent 869c3344c9
commit 574e859e38
1 changed files with 2 additions and 1 deletions

View File

@ -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: