Ensure BKE_mesh_new_nomain_from_template() always has valid mxxx pointers
authorSybren A. Stüvel <sybren@stuvel.eu>
Wed, 6 Jun 2018 10:21:36 +0000 (12:21 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Wed, 6 Jun 2018 10:27:25 +0000 (12:27 +0200)
commit7a76223f1f12b6bb049df1864e5d0cda70060a8f
treeb292e6d96317aed2fc086bfdf1e3caad3ca0a668
parent8a0e6a31430fbf8ab322e953f6649d14cd147a7b
Ensure BKE_mesh_new_nomain_from_template() always has valid mxxx pointers

When the source mesh doesn't have the primary layers (CD_VERT for vdata,
etc.) the returned mesh also didn't have those layers, even when non-zero
elements were requested (for example requesting 4 vertices would still
result in mvert = NULL).
source/blender/blenkernel/intern/mesh.c