Blender Git Commit Log

Git Commits -> Revision 46eb5a0

Revision 46eb5a0 by Sergey Sharybin (master)
April 1, 2019, 12:49 (GMT)
Tweak behavior of object.to_mesh()

- Passing original object with apply_modifiers=false will give a
non-modified non-deformed mesh.
The result mesh will point to datablocks from the original "domain". For
example, materials will be original.

- Passing original object with apply_modifiers=true will give a mesh which
has all modifiers applied.
The result mesh will point to datablocks from the original "domain". For
example, materials will be original.

- Passing evaluated object will ignore apply_modifiers argument, and the
result always contains all modifiers applied.
The result mesh will point to an evaluated datablocks. For example,
materials will be an evaluated IDs from the dependency graph.

Fixes T62916: Applying boolean modifier does not set material properly

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

Commit Details:

Full Hash: 46eb5a0b8a4f3a7826b5e5a1a11e114e09037dba
Parent Commit: 4370d00
Lines Changed: +68, -31

1 Modified Path:

/source/blender/blenkernel/intern/mesh_convert.c (+68, -31) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021