diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-28 03:42:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-28 03:42:42 +0400 |
commit | 1cc52288d5e747227b1f0e099e397c09ba1c6fb0 (patch) | |
tree | 5f86f8d89f45a5be6c5aeb3d891eefd9388ee342 /source/blender/blenkernel/intern | |
parent | b7c931416c6ecc30e22ecf1bd9f70aa535e6d97d (diff) |
fix for crash while drawing editmesh with weights in rare cases when the length was set but array NULL.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/editmesh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/editmesh.c b/source/blender/blenkernel/intern/editmesh.c index 7c6a5643c8d..3e925b73116 100644 --- a/source/blender/blenkernel/intern/editmesh.c +++ b/source/blender/blenkernel/intern/editmesh.c @@ -60,8 +60,11 @@ BMEditMesh *BKE_editmesh_copy(BMEditMesh *em) *em_copy = *em; em_copy->derivedCage = em_copy->derivedFinal = NULL; + em_copy->derivedVertColor = NULL; + em_copy->derivedVertColorLen = 0; em_copy->derivedFaceColor = NULL; + em_copy->derivedFaceColorLen = 0; em_copy->bm = BM_mesh_copy(em->bm); |