diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-11-04 12:31:59 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-11-04 12:31:59 +0300 |
commit | d5974eb0266104344084e72211b4644e97f4af67 (patch) | |
tree | 642c65fbae6e3e58a0ecd3b18ce6b2b36b9d2ddc /source | |
parent | 3ce594226eaaf332bb30ea0d193c9f9d930711b9 (diff) |
Cleanup for previous own commit (sorry...)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c index fb0135bf163..8f02ccdd8b2 100644 --- a/source/blender/blenkernel/intern/customdata.c +++ b/source/blender/blenkernel/intern/customdata.c @@ -1873,8 +1873,7 @@ int CustomData_number_of_layers_typemask(const CustomData *data, CustomDataMask return number; } -static void *customData_duplicate_referenced_layer_index(CustomData *data, const int type, - const int layer_index, const int totelem) +static void *customData_duplicate_referenced_layer_index(CustomData *data, const int layer_index, const int totelem) { CustomDataLayer *layer; @@ -1908,35 +1907,32 @@ static void *customData_duplicate_referenced_layer_index(CustomData *data, const void *CustomData_duplicate_referenced_layer(CustomData *data, const int type, const int totelem) { - CustomDataLayer *layer; int layer_index; /* get the layer index of the first layer of type */ layer_index = CustomData_get_active_layer_index(data, type); - return customData_duplicate_referenced_layer_index(data, type, layer_index, totelem); + return customData_duplicate_referenced_layer_index(data, layer_index, totelem); } void *CustomData_duplicate_referenced_layer_n(CustomData *data, const int type, const int n, const int totelem) { - CustomDataLayer *layer; int layer_index; /* get the layer index of the desired layer */ layer_index = CustomData_get_layer_index_n(data, type, n); - return customData_duplicate_referenced_layer_index(data, type, layer_index, totelem); + return customData_duplicate_referenced_layer_index(data, layer_index, totelem); } void *CustomData_duplicate_referenced_layer_named(CustomData *data, const int type, const char *name, const int totelem) { - CustomDataLayer *layer; int layer_index; /* get the layer index of the desired layer */ layer_index = CustomData_get_named_layer_index(data, type, name); - return customData_duplicate_referenced_layer_index(data, type, layer_index, totelem); + return customData_duplicate_referenced_layer_index(data, layer_index, totelem); } bool CustomData_is_referenced_layer(struct CustomData *data, int type) |