Commit: cb9f4fecad46e4cbdfc3277206bd7deceeb169b6
Author: Antonio Vazquez
Date:   Wed Nov 27 20:25:31 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rBcb9f4fecad46e4cbdfc3277206bd7deceeb169b6

GPencil: Check NULL Pointer

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

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 044b5ee8631..3438789feae 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -1687,7 +1687,9 @@ static void gp_bruh_tag_mode_brushes(Main *bmain, Paint 
*paint, const enum eCont
       }
     }
 
-    brush->gpencil_settings->flag |= GP_BRUSH_TAG;
+    if (brush->gpencil_settings != NULL) {
+      brush->gpencil_settings->flag |= GP_BRUSH_TAG;
+    }
   }
 }

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

Reply via email to