diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2018-12-08 15:39:46 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2018-12-08 15:39:46 +0300 |
commit | aff9ccbade9ae74fb63becc842621eefef5abfa0 (patch) | |
tree | 2c98bde6904488842a3e1bb73a2a62dd889c17f2 | |
parent | 64bca2e6486e7cfcf500f43ec85b63f749dfc85c (diff) |
Fix T51057 Modifiers lose bevel weight and crease
This is for 2.80 (though bug I mistakenly merged into was for 2.78.
Duplicate bugs T58127, T58411, T58440, and T58789 all fixed.
Bevel weights and crease are not real Mesh layers so get lost
on coversion of mesh to bmesh unelss the mesh's cd_flag member
tells the converter to create layers for them.
Most code the copies or partially copies meshes uses
mesh_new_nomain_from_template_ex, so copied the flag there.
-rw-r--r-- | source/blender/blenkernel/intern/mesh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c index 1400fbd514e..e9d68d789a0 100644 --- a/source/blender/blenkernel/intern/mesh.c +++ b/source/blender/blenkernel/intern/mesh.c @@ -662,6 +662,8 @@ static Mesh *mesh_new_nomain_from_template_ex( me_dst->totloop = loops_len; me_dst->totpoly = polys_len; + me_dst->cd_flag = me_src->cd_flag; + CustomData_copy(&me_src->vdata, &me_dst->vdata, mask, CD_CALLOC, verts_len); CustomData_copy(&me_src->edata, &me_dst->edata, mask, CD_CALLOC, edges_len); CustomData_copy(&me_src->ldata, &me_dst->ldata, mask, CD_CALLOC, loops_len); |