From 7021bd527380b4d87cf48057f0039509326b03dd Mon Sep 17 00:00:00 2001 From: Antonioya Date: Mon, 25 Mar 2019 17:02:42 +0100 Subject: GPencil: Only brushes with pinned materials have materials Using GP_BRUSH_MATERIAL_PINNED to switch between active material and brush material, instead of updating all brushes on active material changes. This will allow brushes to have no material and therefore to not inflate the user count. This fix T62465. Patch contributed by @matc Reviewers: @brecht @antoniov @billreynish @mendio --- source/blender/blenkernel/intern/material.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/blenkernel/intern/material.c') diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c index 88a96ff098e..f708984e51f 100644 --- a/source/blender/blenkernel/intern/material.c +++ b/source/blender/blenkernel/intern/material.c @@ -164,7 +164,6 @@ Material *BKE_material_add_gpencil(Main *bmain, const char *name) /* grease pencil settings */ if (ma != NULL) { BKE_material_init_gpencil_settings(ma); - BKE_brush_update_material(bmain, ma, NULL); } return ma; } -- cgit v1.2.3