Blender Git Loki

Git Commits -> Revision b39d7e4

Revision b39d7e4 by Sybren A. Stüvel (master)
July 10, 2019, 12:13 (GMT)
Fix T66631: Crash when converting objects from Curve to Mesh

When `BKE_mesh_new_from_object()` cannot convert an object to a mesh, it
returns `NULL`. This case was not handled at all in
`BKE_mesh_new_from_object_to_bmain()` or `curvetomesh()`, causing a
segmentation fault.

This commit fixes the segmentation fault, and leaves the curve object as
a curve object.

Reviewed By: mont29, brecht, sergey

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

Commit Details:

Full Hash: b39d7e484c6be45fb8ffe0809aecb5726b7d1936
Parent Commit: d3e1782
Lines Changed: +16, -3

2 Modified Paths:

/source/blender/blenkernel/intern/mesh_convert.c (+5, -0) (Diff)
/source/blender/editors/object/object_add.c (+11, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021