diff options
-rw-r--r-- | source/blender/editors/armature/editarmature_sketch.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 1 | ||||
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/armature/editarmature_sketch.c b/source/blender/editors/armature/editarmature_sketch.c index a9d9d96a54a..121a7d6987b 100644 --- a/source/blender/editors/armature/editarmature_sketch.c +++ b/source/blender/editors/armature/editarmature_sketch.c @@ -2456,6 +2456,7 @@ static int sketch_delete(bContext *C, wmOperator *UNUSED(op), wmEvent *UNUSED(ev sk_deleteSelectedStrokes(sketch); // allqueue(REDRAWVIEW3D, 0); } + WM_event_add_notifier(C, NC_SCREEN|ND_SKETCH|NA_REMOVED, NULL); return OPERATOR_FINISHED; } diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index d9f0ea07cce..08c50b95778 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -703,6 +703,7 @@ static void view3d_main_area_listener(ARegion *ar, wmNotifier *wmn) switch(wmn->data) { case ND_GPENCIL: case ND_ANIMPLAY: + case ND_SKETCH: ED_region_tag_redraw(ar); break; case ND_SCREENBROWSE: diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index b853ff9efd4..ea06395c35b 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -172,6 +172,7 @@ typedef struct wmNotifier { #define ND_GPENCIL (5<<16) #define ND_EDITOR_CHANGED (6<<16) /*sent to new editors after switching to them*/ #define ND_SCREENSET (7<<16) +#define ND_SKETCH (8<<16) /* NC_SCENE Scene */ #define ND_SCENEBROWSE (1<<16) |