From d788f5231e81ae2be363f877d04ab93ddc396fa6 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Wed, 12 Jun 2019 15:51:51 +0200 Subject: Fix T65741: Removing a GPencil Object's Material Slot deletes the strokes assigned to it This was a design decision, but now we have decided to change it using the active material for the strokes using deleted material. If the material slot is empty a new material is created to keep the strokes visible. --- source/blender/blenkernel/BKE_gpencil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_gpencil.h') diff --git a/source/blender/blenkernel/BKE_gpencil.h b/source/blender/blenkernel/BKE_gpencil.h index 2e5d5911239..0e3b0181fb9 100644 --- a/source/blender/blenkernel/BKE_gpencil.h +++ b/source/blender/blenkernel/BKE_gpencil.h @@ -86,7 +86,7 @@ void BKE_gpencil_make_local(struct Main *bmain, struct bGPdata *gpd, const bool void BKE_gpencil_frame_delete_laststroke(struct bGPDlayer *gpl, struct bGPDframe *gpf); /* materials */ -void BKE_gpencil_material_index_remove(struct bGPdata *gpd, int index); +void BKE_gpencil_material_index_reassign(struct bGPdata *gpd, int totcol, int index); void BKE_gpencil_material_remap(struct bGPdata *gpd, const unsigned int *remap, unsigned int remap_len); -- cgit v1.2.3