diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-12-13 00:29:09 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-12-13 00:29:09 +0300 |
commit | 80ee52e444f05a6fd7a45f2ddfe72720648fbab8 (patch) | |
tree | 577238b0fdb738813ca560f0c5fc08dd6b945956 /source/blender/blenkernel/BKE_DerivedMesh.h | |
parent | 47adee414c7848f6ad898e9029205e804b9d6601 (diff) |
Multiple UV and vertex color layers: (still work in progress)
These can be created and deleted in the Mesh panel in the same place as
before. There is always one active UV and vertex color layer, that is
edited and displayed.
Important things to do:
- Render engine, material support
- Multires and NMesh now lose non active layers
Also CustomData changes to support muliple layers of the same type, and
changes to layer allocation, updated documentation is here:
http://mediawiki.blender.org/index.php/BlenderDev/BlenderArchitecture/CustomData
Diffstat (limited to 'source/blender/blenkernel/BKE_DerivedMesh.h')
-rw-r--r-- | source/blender/blenkernel/BKE_DerivedMesh.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/blenkernel/BKE_DerivedMesh.h b/source/blender/blenkernel/BKE_DerivedMesh.h index f7c771394b8..872717fdb9b 100644 --- a/source/blender/blenkernel/BKE_DerivedMesh.h +++ b/source/blender/blenkernel/BKE_DerivedMesh.h @@ -304,16 +304,14 @@ void DM_set_only_copy(DerivedMesh *dm, CustomDataMask mask); /* adds a vertex/edge/face custom data layer to a DerivedMesh, optionally * backed by an external data array - * if layer != NULL, it is used as the layer data array, otherwise new memory - * is allocated - * the layer data will be freed by dm->release unless - * (flag & LAYERFLAG_NOFREE) is true + * alloctype defines how the layer is allocated or copied, and how it is + * freed, see BKE_customdata.h for the different options */ -void DM_add_vert_layer(struct DerivedMesh *dm, int type, int flag, +void DM_add_vert_layer(struct DerivedMesh *dm, int type, int alloctype, void *layer); -void DM_add_edge_layer(struct DerivedMesh *dm, int type, int flag, +void DM_add_edge_layer(struct DerivedMesh *dm, int type, int alloctype, void *layer); -void DM_add_face_layer(struct DerivedMesh *dm, int type, int flag, +void DM_add_face_layer(struct DerivedMesh *dm, int type, int alloctype, void *layer); /* custom data access functions @@ -355,7 +353,7 @@ void DM_copy_face_data(struct DerivedMesh *source, struct DerivedMesh *dest, /* custom data free functions * free count elements, starting at index - * they free all layers for which the LAYERFLAG_NOFREE flag is not set + * they free all layers for which the CD_FLAG_NOCOPY flag is not set */ void DM_free_vert_data(struct DerivedMesh *dm, int index, int count); void DM_free_edge_data(struct DerivedMesh *dm, int index, int count); |