diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-12-24 14:15:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-12-24 14:15:54 +0300 |
commit | c5de881413504e64011e10b1cf2cbe094950602c (patch) | |
tree | fc1bda1bf150a8c0d6ba10fe2f2e31d056dabaeb /source/blender/blenkernel/BKE_customdata.h | |
parent | 1be58e7a8dccb17dcdf3d95804de0139ba392881 (diff) |
added CustomData_add_layer_named, same as CustomData_add_layer but accepts a name. saves Mesh.c having to look up the data after adding (just to rename it)
Diffstat (limited to 'source/blender/blenkernel/BKE_customdata.h')
-rw-r--r-- | source/blender/blenkernel/BKE_customdata.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h index 73b1e02eb51..03224eaadaf 100644 --- a/source/blender/blenkernel/BKE_customdata.h +++ b/source/blender/blenkernel/BKE_customdata.h @@ -83,6 +83,9 @@ void CustomData_free_temporary(struct CustomData *data, int totelem); */ void *CustomData_add_layer(struct CustomData *data, int type, int alloctype, void *layer, int totelem); +/*same as above but accepts a name */ +void *CustomData_add_layer_named(struct CustomData *data, int type, int alloctype, + void *layer, int totelem, char *name); /* frees the active or first data layer with the give type. * returns 1 on succes, 0 if no layer with the given type is found |