diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-08 16:09:54 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-08 16:19:45 +0300 |
commit | a749d7d8facdf8b49cef25ee6fd1a3ecea9b09b5 (patch) | |
tree | 4684fed45b5d375b3a7f4d2e7333e58060621ffd /source/blender/bmesh/intern | |
parent | da73f56917236c0633f31ce61ee11f9a0308afb1 (diff) |
Fix T59304: boolean modifier does not preserve UV textures.
In the old derivedmesh function it was merging customdata layers, added
that back for mesh conversion too.
Diffstat (limited to 'source/blender/bmesh/intern')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_mesh_conv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_mesh_conv.c b/source/blender/bmesh/intern/bmesh_mesh_conv.c index 8254b8a2202..4dc6cc8b965 100644 --- a/source/blender/bmesh/intern/bmesh_mesh_conv.c +++ b/source/blender/bmesh/intern/bmesh_mesh_conv.c @@ -219,6 +219,12 @@ void BM_mesh_bm_from_me( CustomData_copy(&me->ldata, &bm->ldata, mask.lmask, CD_CALLOC, 0); CustomData_copy(&me->pdata, &bm->pdata, mask.pmask, CD_CALLOC, 0); } + else { + CustomData_bmesh_merge(&me->vdata, &bm->vdata, mask.vmask, CD_CALLOC, bm, BM_VERT); + CustomData_bmesh_merge(&me->edata, &bm->edata, mask.emask, CD_CALLOC, bm, BM_EDGE); + CustomData_bmesh_merge(&me->ldata, &bm->ldata, mask.lmask, CD_CALLOC, bm, BM_LOOP); + CustomData_bmesh_merge(&me->pdata, &bm->pdata, mask.pmask, CD_CALLOC, bm, BM_FACE); + } /* -------------------------------------------------------------------- */ /* Shape Key */ |