Blender Git Loki

Git Commits -> Revision 26d5fae

Revision 26d5fae by Bastien Montagne (master)
August 2, 2019, 16:24 (GMT)
Fix T68135: Do not return NULL/None when converting an object to a mesh.

Does not make sense in the use-cases of that function, especially since
we don't know whether it is actually due to an error, or some glitch
(like an empty curve).

Think we always want to get a mesh when using either operator
conversion, or the `bpy.data.meshes.new_from_object` function.

Note that an assert was also added to ensure we do try to convert from a
valid 'geometry' object type.

Commit Details:

Full Hash: 26d5fae2841d098d0e3be3b02d5d09458512c3a5
Parent Commit: dda0de4
Lines Changed: +9, -3

2 Modified Paths:

/source/blender/blenkernel/BKE_mesh.h (+3, -1) (Diff)
/source/blender/blenkernel/intern/mesh_convert.c (+6, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021