diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-21 13:38:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-21 13:38:09 +0400 |
commit | 20d3022076d842d51d620ab725e3d8eed18e95da (patch) | |
tree | 5a8b2f539a40c85a596d8d7b655430525e256d01 /source/blender/blenkernel/intern/armature.c | |
parent | 62a02764abea8c73f14f36a5b45058ce8a7e4f36 (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.c | 5 |
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; } |