[ #3712 ] Calling makeEditable() and update() on an armature twice duplicates bones

* fixes bug where editbones are not freed on calling update()
This commit is contained in:
Joseph Gilbert 2006-01-04 15:07:15 +00:00
parent ff7ca4b1a2
commit de37b11e56

@ -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;
}