Blender Git Commit Log

Git Commits -> Revision 136c8d1

February 27, 2015, 11:27 (GMT)
Add argument to DM_to_mesh() function to take ownership over the DM

The idea is pretty simple: instead of making temporary copy of all the
related custom data layers just pass the ownership from the DM to the
mesh.

This is really handy in cases when you've got DM which you need to
convert to Mesh datablock and wouldn't need that DM after conversion
anyway.

Foe example, render database conversion, exporters and even Modifier
Apply will benefit from this option.

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D1127

Commit Details:

Full Hash: 136c8d1ae0fafc90281bd778c3ce362bf7837694
Parent Commit: 6320749
Lines Changed: +62, -24

8 Modified Paths:

/source/blender/blenkernel/BKE_customdata.h (+3, -0) (Diff)
/source/blender/blenkernel/BKE_DerivedMesh.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/customdata.c (+19, -0) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+34, -13) (Diff)
/source/blender/blenkernel/intern/mesh.c (+2, -3) (Diff)
/source/blender/collada/collada_utils.cpp (+1, -2) (Diff)
/source/blender/editors/object/object_add.c (+1, -2) (Diff)
/source/blender/editors/object/object_modifier.c (+1, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021