Commit: 393e439ff34bfc436f047ecc871913cc422d0d60
Author: Antonio Vazquez
Date:   Wed Nov 27 11:21:11 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB393e439ff34bfc436f047ecc871913cc422d0d60

GPencil: Add missing notifier when reset brushes

===================================================================

M       source/blender/editors/gpencil/gpencil_data.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_data.c 
b/source/blender/editors/gpencil/gpencil_data.c
index cfc224a445e..fea9e743b5b 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -1615,7 +1615,7 @@ static int gp_brush_reset_exec(bContext *C, wmOperator 
*UNUSED(op))
   }
 
   /* notifiers */
-  WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL);
+  WM_main_add_notifier(NC_BRUSH | NA_EDITED, NULL);
 
   return OPERATOR_FINISHED;
 }
@@ -1715,6 +1715,7 @@ static int gp_brush_reset_all_exec(bContext *C, 
wmOperator *UNUSED(op))
   /* notifiers */
   if (changed) {
     DEG_relations_tag_update(bmain);
+    WM_main_add_notifier(NC_BRUSH | NA_EDITED, NULL);
   }
 
   return OPERATOR_FINISHED;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to