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:
authorBastien Montagne <montagne29@wanadoo.fr>2014-11-04 12:06:08 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2014-11-04 12:06:08 +0300
commit3ce594226eaaf332bb30ea0d193c9f9d930711b9 (patch)
tree74c091238dc86e2b379811932ed621b1602f0d11 /source/blender/blenkernel/BKE_customdata.h
parentcb5ec7f7431d9720518ade17eee3c1ce9732e7de (diff)
Add missing `CustomData_duplicate_referenced_layer_n` and deduplicate code.
CustomData_duplicate_referenced_layer_n not used in master currently, but need it in mesh tranfer branch.
Diffstat (limited to 'source/blender/blenkernel/BKE_customdata.h')
-rw-r--r--source/blender/blenkernel/BKE_customdata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h
index 51c78948c70..30a58891bda 100644
--- a/source/blender/blenkernel/BKE_customdata.h
+++ b/source/blender/blenkernel/BKE_customdata.h
@@ -173,6 +173,7 @@ int CustomData_number_of_layers_typemask(const struct CustomData *data, CustomDa
/* duplicate data of a layer with flag NOFREE, and remove that flag.
* returns the layer data */
void *CustomData_duplicate_referenced_layer(struct CustomData *data, const int type, const int totelem);
+void *CustomData_duplicate_referenced_layer_n(struct CustomData *data, const int type, const int n, const int totelem);
void *CustomData_duplicate_referenced_layer_named(struct CustomData *data,
const int type, const char *name, const int totelem);
bool CustomData_is_referenced_layer(struct CustomData *data, int type);