diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-06 14:08:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-06 14:08:49 +0300 |
commit | cbc0a73ae423bf467824b5d4e1e0974ad2a0fddd (patch) | |
tree | 79f4c76526c9c96091404bb58b0ac06a8c390b15 /source/blender/modifiers | |
parent | 7e6d09608b015a52bb6a731d9b9461d21b8d3afa (diff) |
Fix T47034: Explode "Cut Edges" looses UV's
Own regression in c61e4f2
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_explode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_explode.c b/source/blender/modifiers/intern/MOD_explode.c index cd318e4b105..38ffdaa709b 100644 --- a/source/blender/modifiers/intern/MOD_explode.c +++ b/source/blender/modifiers/intern/MOD_explode.c @@ -634,7 +634,9 @@ static DerivedMesh *cutEdges(ExplodeModifierData *emd, DerivedMesh *dm) for (i = 0, fs = facesplit; i < totface; i++, fs++) totfsplit += add_faces[*fs]; - splitdm = CDDM_from_template(dm, totesplit, 0, totface + totfsplit, 0, 0); + splitdm = CDDM_from_template_ex( + dm, totesplit, 0, totface + totfsplit, 0, 0, + CD_MASK_DERIVEDMESH | CD_MASK_FACECORNERS); numlayer = CustomData_number_of_layers(&splitdm->faceData, CD_MTFACE); /* copy new faces & verts (is it really this painful with custom data??) */ |