diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-01-07 03:12:37 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-01-07 03:12:37 +0300 |
commit | 45c7af6c9cfdb50fabc1e5078cab7082e714af57 (patch) | |
tree | 78befffbdb81e8eeef870b75736e919055eddacb /source/blender/editors/space_image/space_image.c | |
parent | bafabf4eda0eba5f537bed0cb80986a40501a9e9 (diff) |
Fix: Missing updates for UI panels and main region when using Grease Pencil in Image Editor
Diffstat (limited to 'source/blender/editors/space_image/space_image.c')
-rw-r--r-- | source/blender/editors/space_image/space_image.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c index df78dfa4a14..6cf53533618 100644 --- a/source/blender/editors/space_image/space_image.c +++ b/source/blender/editors/space_image/space_image.c @@ -797,7 +797,9 @@ static void image_main_area_listener(bScreen *UNUSED(sc), ScrArea *sa, ARegion * /* context changes */ switch (wmn->category) { case NC_GPENCIL: - if (wmn->action == NA_EDITED) + if (ELEM(wmn->action, NA_EDITED, NA_SELECTED)) + ED_region_tag_redraw(ar); + else if (wmn->data & ND_GPENCIL_EDITMODE) ED_region_tag_redraw(ar); break; case NC_IMAGE: @@ -860,6 +862,10 @@ static void image_buttons_area_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa) case NC_NODE: ED_region_tag_redraw(ar); break; + case NC_GPENCIL: + if (ELEM(wmn->action, NA_EDITED, NA_SELECTED)) + ED_region_tag_redraw(ar); + break; } } @@ -908,7 +914,7 @@ static void image_tools_area_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa), /* context changes */ switch (wmn->category) { case NC_GPENCIL: - if (wmn->data == ND_DATA) + if (wmn->data == ND_DATA || ELEM(wmn->action, NA_EDITED, NA_SELECTED)) ED_region_tag_redraw(ar); break; case NC_BRUSH: |