diff options
author | Ben Batt <benbatt@gmail.com> | 2007-01-29 18:10:55 +0300 |
---|---|---|
committer | Ben Batt <benbatt@gmail.com> | 2007-01-29 18:10:55 +0300 |
commit | 2a47217cba4123da38d47278a5f52c38080e926e (patch) | |
tree | 0127a1a0fd21fefacddee4a72e8f722759dd6255 /source/blender/blenkernel/BKE_customdata.h | |
parent | 2d361fca0d0ee4ec085459286e75257f6c2f8c9c (diff) |
= Updating the UVProject modifier to handle multiple UV layers =
* Removed the "Add UVs" option from the UVProject modifier
* Added a UV layer menu to the UVProject modifier
* Refactored the Displace modifier UV layer menu code to allow the UVProject
modifier to share it
* Added two CustomData functions to facilitate getting layers by name
Diffstat (limited to 'source/blender/blenkernel/BKE_customdata.h')
-rw-r--r-- | source/blender/blenkernel/BKE_customdata.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h index b0fe1ebde5d..ecefb6dde47 100644 --- a/source/blender/blenkernel/BKE_customdata.h +++ b/source/blender/blenkernel/BKE_customdata.h @@ -113,6 +113,8 @@ int CustomData_number_of_layers(const struct CustomData *data, int type); /* duplicate data of a layer with flag NOFREE, and remove that flag. * returns the layer data */ void *CustomData_duplicate_referenced_layer(struct CustomData *data, int type); +void *CustomData_duplicate_referenced_layer_named(struct CustomData *data, + int type, char *name); /* set the CD_FLAG_NOCOPY flag in custom data layers where the mask is * zero for the layer type, so only layer types specified by the mask @@ -176,6 +178,8 @@ void *CustomData_em_get_n(const struct CustomData *data, void *block, int type, */ void *CustomData_get_layer(const struct CustomData *data, int type); void *CustomData_get_layer_n(const struct CustomData *data, int type, int n); +void *CustomData_get_layer_named(const struct CustomData *data, int type, + char *name); int CustomData_get_layer_index(const struct CustomData *data, int type); int CustomData_get_named_layer_index(const struct CustomData *data, int type, char *name); |