diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-05-02 04:01:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-05-02 04:01:23 +0400 |
commit | c24aa10561c3e301989df0d7f227f478f846143a (patch) | |
tree | c0a0f86cc48f4a6f9ecedeaf479ca353abe55fde /source/blender/blenkernel/BKE_customdata.h | |
parent | 0b0f0b0ffb0075ce889b7515ebfd822bf99426cb (diff) |
Made it so blender has an active render layer for Uv and Vertex color mesh layers.
This means changing the active UV/VCol layers wont change what renders.
needed to adjust the minor version so old files will copy the active layer to the render-uv/vcol layer.
boxpack2d.py - redoen in C now, dont need python version.
Diffstat (limited to 'source/blender/blenkernel/BKE_customdata.h')
-rw-r--r-- | source/blender/blenkernel/BKE_customdata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h index b41c06f046f..4a486e6795f 100644 --- a/source/blender/blenkernel/BKE_customdata.h +++ b/source/blender/blenkernel/BKE_customdata.h @@ -184,6 +184,7 @@ void *CustomData_get_layer_named(const struct CustomData *data, int type, 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); int CustomData_get_active_layer_index(const struct CustomData *data, int type); +int CustomData_get_render_layer_index(const struct CustomData *data, int type); /* copies the data from source to the data element at index in the first * layer of type @@ -204,6 +205,7 @@ void *CustomData_set_layer_n(const struct CustomData *data, int type, int n, voi /* sets the nth layer of type as active */ void CustomData_set_layer_active(struct CustomData *data, int type, int n); +void CustomData_set_layer_render(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); |