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:
authorTon Roosendaal <ton@blender.org>2006-11-04 15:26:35 +0300
committerTon Roosendaal <ton@blender.org>2006-11-04 15:26:35 +0300
commit8e862a22eabb13a743fb46b9335c5beb52fddbf3 (patch)
tree988e0f761c07201774484d91dff8b130a10a0463 /source/blender/blenkernel
parent916ea9b6d38f7070120b53e258e50232894a29fb (diff)
Bugfix #5154
Mesh->mselect (the selection storage) didn't get zero'ed on duplicate, potentially causing crashes. Bad!
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/mesh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c
index b1b3d87dbcc..c0741e7137a 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -240,7 +240,8 @@ Mesh *copy_mesh(Mesh *me)
men->mface= MEM_dupallocN(me->mface);
men->tface= MEM_dupallocN(me->tface);
men->dface= NULL;
-
+ men->mselect= NULL;
+
if (me->dvert){
men->dvert = MEM_mallocN (sizeof (MDeformVert)*me->totvert, "MDeformVert");
copy_dverts(men->dvert, me->dvert, me->totvert);