Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-08-23 17:00:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-23 17:00:43 +0400
commitd6b9fb36d85eac730ce9a3deb6211fb0c3c0a5ec (patch)
tree3b3af5257b60bb3e984f4ccc8898dc6f82f67b2a /source/blender/bmesh/intern/bmesh_construct.c
parentf560d25666b6aa7b1451a5626525505183f8fffa (diff)
fix leak in BM_face_split() with multires if the split failed.
also remove redundant normal copy. only triangulate the mesh if its needed when enabling dyntopo.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_construct.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_construct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_construct.c b/source/blender/bmesh/intern/bmesh_construct.c
index 3df5cab0340..bee5a7c7d39 100644
--- a/source/blender/bmesh/intern/bmesh_construct.c
+++ b/source/blender/bmesh/intern/bmesh_construct.c
@@ -794,6 +794,7 @@ void BM_elem_attrs_copy_ex(BMesh *bm_src, BMesh *bm_dst, const void *ele_src_v,
BMHeader *ele_dst = ele_dst_v;
BLI_assert(ele_src->htype == ele_dst->htype);
+ BLI_assert(ele_src != ele_dst);
if ((hflag_mask & BM_ELEM_SELECT) == 0) {
/* First we copy select */