Fix T46186: Panel doesn't update on brush change

This commit is contained in:
Campbell Barton 2015-09-21 10:32:14 +10:00
parent 5031dbcee5
commit 034cc855f0
Notes: blender-bot 2023-02-14 08:38:11 +01:00
Referenced by issue #46309, Cycles reflection and bump artifacts
Referenced by issue #46226, bake normals from multiresolution crash
Referenced by issue #46229, File browser window closes after hitting esc after render
Referenced by issue #46224, Particle objects that are emitted are ignored in cycles for baking normal maps.
Referenced by issue #46202, Fullscreen crashes Blender on Mac OS X
Referenced by issue #46186, Brush Panel Doesn't Update Until Drawing Stroke When Selecting Brush With Numkey
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: