[Bf-blender-cvs] [cbc0a73] master: Fix T47034: Explode "Cut Edges" looses UV's
Campbell Barton
noreply at git.blender.org
Wed Jan 6 12:16:22 CET 2016
Commit: cbc0a73ae423bf467824b5d4e1e0974ad2a0fddd
Author: Campbell Barton
Date: Wed Jan 6 22:08:49 2016 +1100
Branches: master
https://developer.blender.org/rBcbc0a73ae423bf467824b5d4e1e0974ad2a0fddd
Fix T47034: Explode "Cut Edges" looses UV's
Own regression in c61e4f2
===================================================================
M source/blender/modifiers/intern/MOD_explode.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_explode.c b/source/blender/modifiers/intern/MOD_explode.c
index cd318e4..38ffdaa 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??) */
More information about the Bf-blender-cvs
mailing list