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/armature.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/armature.c')
-rw-r--r--source/blender/blenkernel/intern/armature.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index a0511f5da2e..a79637eea73 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -214,6 +214,11 @@ bArmature *copy_armature(bArmature *arm)
};
newArm->act_bone= newActBone;
+
+ newArm->edbo= NULL;
+ newArm->act_edbone= NULL;
+ newArm->sketch= NULL;
+
return newArm;
}