Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_customdata.h
| Show First 20 Lines • Show All 390 Lines • ▼ Show 20 Lines | |||||
| * \note doesn't check type. | * \note doesn't check type. | ||||
| */ | */ | ||||
| void *CustomData_bmesh_get_layer_n(const struct CustomData *data, void *block, int n); | void *CustomData_bmesh_get_layer_n(const struct CustomData *data, void *block, int n); | ||||
| bool CustomData_set_layer_name(const struct CustomData *data, int type, int n, const char *name); | bool CustomData_set_layer_name(const struct CustomData *data, int type, int n, const char *name); | ||||
| const char *CustomData_get_layer_name(const struct CustomData *data, int type, int n); | const char *CustomData_get_layer_name(const struct CustomData *data, int type, int n); | ||||
| /** | /** | ||||
| * Unconditionally sets the name of the layer by index, ensures the name is unique | |||||
HooglyBoogly: Given the second sentence, I'm not sure what "Unconditionally" means here. | |||||
Done Inline ActionsI mean it can't fail because the layer doesn't exist or something. No error checking is done on the layer existing or not. That's maybe badly worded I'll try to think of a better way. Baardaap: I mean it can't fail because the layer doesn't exist or something. No error checking is done on… | |||||
| * so the the name actually set might differ! | |||||
| */ | |||||
| void CustomData_set_layer_name_index(struct CustomData *data, int index, const char *name); | |||||
| /** | |||||
| * Gets a pointer to the active or first layer of type. | * Gets a pointer to the active or first layer of type. | ||||
| * \return NULL if there is no layer of type. | * \return NULL if there is no layer of type. | ||||
| */ | */ | ||||
| void *CustomData_get_layer(const struct CustomData *data, 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_n(const struct CustomData *data, int type, int n); | ||||
| void *CustomData_get_layer_named(const struct CustomData *data, int type, const char *name); | void *CustomData_get_layer_named(const struct CustomData *data, int type, const char *name); | ||||
| int CustomData_get_offset(const struct CustomData *data, int type); | int CustomData_get_offset(const struct CustomData *data, int type); | ||||
| int CustomData_get_n_offset(const struct CustomData *data, int type, int n); | int CustomData_get_n_offset(const struct CustomData *data, int type, int n); | ||||
| ▲ Show 20 Lines • Show All 351 Lines • Show Last 20 Lines | |||||
Given the second sentence, I'm not sure what "Unconditionally" means here.