diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-09-12 06:13:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-09-12 06:13:35 +0400 |
commit | f6aa903e10ed4221118814f216eb724d893c1474 (patch) | |
tree | 8684669a969e4166e80426f64c6f37057291d78f /source/blender/blenkernel/BKE_customdata.h | |
parent | 59fe9674765aeee28f2de846b5bb7ebbe499ba4d (diff) |
* added functions to copy between UV and vertex color layers.
* added CustomData_set_layer_active_index and CustomData_set_layer_render_index
since they did not accept values from CustomData_get_active_layer_index and CustomData_get_render_layer_index
* fixed some warnings
* made the colored edge in active face draw mode only display when texture mode enabled.
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 4a486e6795f..97491129755 100644 --- a/source/blender/blenkernel/BKE_customdata.h +++ b/source/blender/blenkernel/BKE_customdata.h @@ -207,6 +207,10 @@ void *CustomData_set_layer_n(const struct CustomData *data, int type, int n, voi void CustomData_set_layer_active(struct CustomData *data, int type, int n); void CustomData_set_layer_render(struct CustomData *data, int type, int n); +/* same as above but works with an index from CustomData_get_layer_index */ +void CustomData_set_layer_active_index(struct CustomData *data, int type, int n); +void CustomData_set_layer_render_index(struct CustomData *data, int type, int n); + /* adds flag to the layer flags */ void CustomData_set_layer_flag(struct CustomData *data, int type, int flag); |