diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-12-13 03:50:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-12-13 03:50:02 +0300 |
commit | 080a5d56646e43dbeae08e62f91c5577ac5671a8 (patch) | |
tree | 1d21b022123c4683306d6ccb6c8e8d0d472b06e2 /source/blender/blenkernel/BKE_customdata.h | |
parent | 655f101ef719157c553c6d1198efc7eb87fba840 (diff) |
exposed CustomData_get_active_layer_index in BKE_customdata.h (needed by python to get the active layer)
added python api stuff to deal with Color and UV/Image layers.
me.activeUvLayer - int
me.activeColorLayer - int
me.totUvLayers - int
me.totColorLayers - int
me.addUvLayer()
me.addColorLayer()
me.removeUvLayer()
me.removeColorLayer()
Variable names may need changing.
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 e6cf16a41e2..3f133adc68a 100644 --- a/source/blender/blenkernel/BKE_customdata.h +++ b/source/blender/blenkernel/BKE_customdata.h @@ -166,6 +166,8 @@ void *CustomData_em_get(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); +int CustomData_get_active_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 * no effect if there is no layer of type |