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>2011-04-21 13:38:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-21 13:38:09 +0400
commit20d3022076d842d51d620ab725e3d8eed18e95da (patch)
tree5a8b2f539a40c85a596d8d7b655430525e256d01 /source/blender/blenkernel/intern/lattice.c
parent62a02764abea8c73f14f36a5b45058ce8a7e4f36 (diff)
following on from last commit r36263.
copying metaball, lattice and armature datablocks while in editmode could segfault when they were freed, NULL these pointers on copy.
Diffstat (limited to 'source/blender/blenkernel/intern/lattice.c')
-rw-r--r--source/blender/blenkernel/intern/lattice.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/lattice.c b/source/blender/blenkernel/intern/lattice.c
index 9d93bb1c25d..d308ccbf876 100644
--- a/source/blender/blenkernel/intern/lattice.c
+++ b/source/blender/blenkernel/intern/lattice.c
@@ -219,7 +219,9 @@ Lattice *copy_lattice(Lattice *lt)
ltn->dvert = MEM_mallocN (sizeof (MDeformVert)*tot, "Lattice MDeformVert");
copy_dverts(ltn->dvert, lt->dvert, tot);
}
-
+
+ ltn->editlatt= NULL;
+
return ltn;
}