diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-12-23 20:07:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-12-23 20:07:02 +0300 |
commit | bef18061ec87ece6d1fec88e9fdffcb854eefb13 (patch) | |
tree | 2be82ed673a2074cfbe9c87b5718943ac0208e47 /source/blender/blenkernel/BKE_customdata.h | |
parent | d66f828c9bee8177fbd3b0155a48dacbb450189b (diff) |
Select Grouped editdata- minor fix in the menu.
Updated Python Mesh API to support UV and Color layers with names.
Similar to vertex group's
renamed a function in customdata.c CustomData_free_layers -> CustomData_free_layers_active and made CustomData_free_layers accept an index, this is needed so python could free layers that arnt active.
Diffstat (limited to 'source/blender/blenkernel/BKE_customdata.h')
-rw-r--r-- | source/blender/blenkernel/BKE_customdata.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h index b20e60c9442..ced210df984 100644 --- a/source/blender/blenkernel/BKE_customdata.h +++ b/source/blender/blenkernel/BKE_customdata.h @@ -89,7 +89,14 @@ void *CustomData_add_layer(struct CustomData *data, int type, int alloctype, * * in editmode, use EM_free_data_layer instead of this function */ -int CustomData_free_layer(struct CustomData *data, int type, int totelem); +int CustomData_free_layer(struct CustomData *data, int type, int totelem, int index); + +/* frees the layer index with the give type. + * returns 1 on succes, 0 if no layer with the given type is found + * + * in editmode, use EM_free_data_layer instead of this function + */ +int CustomData_free_layer_active(struct CustomData *data, int type, int totelem); /* same as above, but free all layers with type */ void CustomData_free_layers(struct CustomData *data, int type, int totelem); |