diff options
-rw-r--r-- | source/blender/python/api2_2x/Bone.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Bone.c b/source/blender/python/api2_2x/Bone.c index d4f59e67ee5..b4f8af4fe12 100644 --- a/source/blender/python/api2_2x/Bone.c +++ b/source/blender/python/api2_2x/Bone.c @@ -460,11 +460,12 @@ static int EditBone_setOptions(BPy_EditBone *self, PyObject *value, void *closur //set the options if(self->editbone){ //make sure the 'connected' property is set up correctly - if (new_flag & BONE_CONNECTED) + if (new_flag & BONE_CONNECTED) { if(!self->editbone->parent) goto AttributeError3; else VECCOPY(self->editbone->head, self->editbone->parent->tail); + } self->editbone->flag = new_flag; }else{ self->flag = new_flag; @@ -479,11 +480,12 @@ static int EditBone_setOptions(BPy_EditBone *self, PyObject *value, void *closur if(self->editbone){ //make sure the 'connected' property is set up correctly - if (numeric_value & BONE_CONNECTED) + if (numeric_value & BONE_CONNECTED) { if(!self->editbone->parent) goto AttributeError3; else VECCOPY(self->editbone->head, self->editbone->parent->tail); + } self->editbone->flag = numeric_value; }else{ self->flag = numeric_value; |