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:
Diffstat (limited to 'source/blender/blenkernel/BKE_DerivedMesh.h')
-rw-r--r--source/blender/blenkernel/BKE_DerivedMesh.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_DerivedMesh.h b/source/blender/blenkernel/BKE_DerivedMesh.h
index 7a44f9de9f9..6350332fd66 100644
--- a/source/blender/blenkernel/BKE_DerivedMesh.h
+++ b/source/blender/blenkernel/BKE_DerivedMesh.h
@@ -65,8 +65,14 @@ struct DerivedMesh {
void (*getMappedVertCoEM)(DerivedMesh *dm, void *vert, float co_r[3]);
- /* Convert to new DispListMesh, should be free'd by caller */
- struct DispListMesh* (*convertToDispListMesh)(DerivedMesh *dm);
+ /* Convert to new DispListMesh, should be free'd by caller.
+ *
+ * If allowShared is true then the caller is committing to not free'ng
+ * the DerivedMesh before free'ng the DispListMesh, which means that
+ * certain fields of the returned DispListMesh can safely be share with
+ * the DerivedMesh's internal data.
+ */
+ struct DispListMesh* (*convertToDispListMesh)(DerivedMesh *dm, int allowShared);
/* Iterate over all vertex points, calling DO_MINMAX with given args.
*