Blender Git Loki

Git Commits -> Revision eb0eb54

Revision eb0eb54 by Hans Goudey (master)
September 23, 2021, 16:41 (GMT)
Fix D12533: Simplify curve object to mesh conversion

This patch simplifies the curve object to mesh conversion
used by the object convert operator and exporters.

The existing code had a convoluted model of ownership, and did quite
a bit of unnecessary work. It also assumed that curve objects always
evaluated to a mesh, which is not the case anymore.

Now the code checks if the object it receives is evaluated. If so,
it can simply return a copy of the evaluated mesh (or convert the
evaluated curve wire edges to a mesh if there was no evaluated mesh).
If the object isn't evaluated, it uses a temporary copy of the object
with modifiers removed to create the mesh in the same way.

This follows up on the recent changes to curve evaluation,
namely that the result is always either a mesh or a wire curve.

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

Commit Details:

Full Hash: eb0eb54d9644c5139ef139fee1e14da35c4fab7e
Parent Commit: ed541de
Lines Changed: +80, -203

3 Modified Paths:

/source/blender/blenkernel/BKE_displist.h (+0, -5) (Diff)
/source/blender/blenkernel/intern/displist.cc (+0, -17) (Diff)
/source/blender/blenkernel/intern/mesh_convert.cc (+80, -181) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021