Blender Git Commit Log

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

By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021