From de37b11e562008b930b0bcbf4753b222c7d219e1 Mon Sep 17 00:00:00 2001 From: Joseph Gilbert Date: Wed, 4 Jan 2006 15:07:15 +0000 Subject: [ #3712 ] Calling makeEditable() and update() on an armature twice duplicates bones * fixes bug where editbones are not freed on calling update() --- source/blender/python/api2_2x/Armature.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/python/api2_2x/Armature.c') 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; } -- cgit v1.2.3