Blender Git Loki

Git Commits -> Revision 9b9f84b

Revision 9b9f84b by Sybren A. Stüvel (master)
May 25, 2020, 07:43 (GMT)
Fix crash when converting BMesh to Mesh with shape keys

The `BM_mesh_bm_to_me()` function copies shape keys from the BMesh to
the Mesh. However, it tries to copy the same number of shape keys as are
defined on the target mesh. Since the target mesh does not necessarily
have the same number of shape keys as the BMesh, this would crash if the
target Mesh has more.

Found while performing some tests for {D7785}.

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

Reviewed by: brecht

Commit Details:

Full Hash: 9b9f84b317feff9454f124330bd3aa774493c003
Parent Commit: c15bb3b
Lines Changed: +4, -0

1 Modified Path:

/source/blender/bmesh/intern/bmesh_mesh_conv.c (+4, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021