diff options
author | Hans Goudey <h.goudey@me.com> | 2021-09-23 19:41:46 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-09-23 19:41:46 +0300 |
commit | eb0eb54d9644c5139ef139fee1e14da35c4fab7e (patch) | |
tree | 16eaeda657498caa9e5413796d7c01b6241857aa /source/blender/editors/util | |
parent | ed541de29dd01339736e04d95302e6e20495de54 (diff) |
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
Diffstat (limited to 'source/blender/editors/util')
0 files changed, 0 insertions, 0 deletions