Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-01-11 05:41:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-11 05:41:27 +0400
commit0c3e570868b86c26905c7f731e61f47a9e99deca (patch)
tree0c74dc7157ebcab185833a1fffe4b74a584486e8 /source/blender/blenkernel/intern/customdata.c
parent3fc0d2691ddc1a0c8b1a808791924561b306cec1 (diff)
remove CustomData_get_active_offset(), use CustomData_get_offset to return the active layer, matching CustomData_get()
Diffstat (limited to 'source/blender/blenkernel/intern/customdata.c')
-rw-r--r--source/blender/blenkernel/intern/customdata.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c
index aca16861a75..e31d7133daf 100644
--- a/source/blender/blenkernel/intern/customdata.c
+++ b/source/blender/blenkernel/intern/customdata.c
@@ -2098,7 +2098,7 @@ void *CustomData_get_layer_named(const struct CustomData *data, int type,
int CustomData_get_offset(const CustomData *data, int type)
{
/* get the layer index of the active layer of type */
- int layer_index = CustomData_get_layer_index(data, type);
+ int layer_index = CustomData_get_active_layer_index(data, type);
if (layer_index < 0) return -1;
return data->layers[layer_index].offset;
@@ -2113,15 +2113,6 @@ int CustomData_get_n_offset(const CustomData *data, int type, int n)
return data->layers[layer_index].offset;
}
-int CustomData_get_active_offset(const CustomData *data, int type)
-{
- /* get the layer index of the active layer of type */
- int layer_index = CustomData_get_active_layer_index(data, type);
- if (layer_index < 0) return -1;
-
- return data->layers[layer_index].offset;
-}
-
int CustomData_set_layer_name(const CustomData *data, int type, int n, const char *name)
{
/* get the layer index of the first layer of type */