diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2006-01-04 18:07:15 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2006-01-04 18:07:15 +0300 |
commit | de37b11e562008b930b0bcbf4753b222c7d219e1 (patch) | |
tree | 88d44397ae6993e1873f9e076454972b1db200da /source/blender/python/api2_2x/Armature.c | |
parent | ff7ca4b1a258e2643794ebcec43fe674c3749425 (diff) |
[ #3712 ] Calling makeEditable() and update() on an armature twice duplicates bones
* fixes bug where editbones are not freed on calling update()
Diffstat (limited to 'source/blender/python/api2_2x/Armature.c')
-rw-r--r-- | source/blender/python/api2_2x/Armature.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Armature.c b/source/blender/python/api2_2x/Armature.c index 2154b28988a..13e2f230100 100644 --- a/source/blender/python/api2_2x/Armature.c +++ b/source/blender/python/api2_2x/Armature.c @@ -465,6 +465,7 @@ static PyObject *Armature_update(BPy_Armature *self) if (!BonesDict_InitBones(self->Bones)) return NULL; self->Bones->editmode_flag = 0; + BLI_freelistN(&self->Bones->editbones); }else{ goto AttributeError; } |