diff options
author | Hans Goudey <h.goudey@me.com> | 2022-06-07 19:00:18 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-06-07 19:00:30 +0300 |
commit | 7974d2bff6f363b75c8317cf1dad3e943fd85df6 (patch) | |
tree | 9579c2eb5b472bdb15582f5994a2218f4989f5fb /source/blender/blenkernel/BKE_customdata.h | |
parent | 9c029a3eb0fa15d7e45e6153af24d7d0fcade201 (diff) |
CustomData: Add function to free a named layer
This can be useful to avoid unnecessary boilerplate in various users
of the CustomData API. Split from D14685 and D14769.
Diffstat (limited to 'source/blender/blenkernel/BKE_customdata.h')
-rw-r--r-- | source/blender/blenkernel/BKE_customdata.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h index 993ab476830..a1101c1df44 100644 --- a/source/blender/blenkernel/BKE_customdata.h +++ b/source/blender/blenkernel/BKE_customdata.h @@ -225,6 +225,7 @@ void *CustomData_add_layer_anonymous(struct CustomData *data, * In edit-mode, use #EDBM_data_layer_free instead of this function. */ bool CustomData_free_layer(struct CustomData *data, int type, int totelem, int index); +bool CustomData_free_layer_named(struct CustomData *data, const char *name, const int totelem); /** * Frees the layer index with the give type. |