Blender Git Loki

Git Commits -> Revision a1a7317

Revision a1a7317 by Sergey Sharybin (master)
March 13, 2015, 12:46 (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: a1a7317f6b098ab6928f33754e57de219877cb64
Parent Commit: 2ef2f08
Lines Changed: +86, -24

8 Modified Paths:

/source/blender/blenkernel/BKE_customdata.h (+8, -0) (Diff)
/source/blender/blenkernel/BKE_DerivedMesh.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/customdata.c (+30, -0) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+42, -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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021