Fix T46186: Panel doesn't update on brush change
authorCampbell Barton <ideasman42@gmail.com>
Mon, 21 Sep 2015 00:32:14 +0000 (10:32 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 21 Sep 2015 00:32:14 +0000 (10:32 +1000)
source/blender/editors/space_image/space_image.c

index 98a0752f64d9cc54fbf5ea36752a3c23b8bfa3be..97e3390f142a0eac7892083f35e5f76254d5e56f 100644 (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: