diff options
author | Antonioya <blendergit@gmail.com> | 2019-06-12 16:51:51 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-06-12 16:52:03 +0300 |
commit | d788f5231e81ae2be363f877d04ab93ddc396fa6 (patch) | |
tree | 3baba69a6faf8cd45abe0ba7d5719320066e680c /source/blender/blenkernel/BKE_gpencil.h | |
parent | 7a50d078fe4125788dfb084cd23a5164070fe69b (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/BKE_gpencil.h')
-rw-r--r-- | source/blender/blenkernel/BKE_gpencil.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |