From 2901da3c29087f5db3fadcbc6a2b3e05d8cdf0fb Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Thu, 5 Jan 2006 20:52:51 +0000 Subject: I added {}'s around an if block of code to prevent gcc from saying this else is ambiguous... code was if (blah) if (blah2) stuff; else stuff2; its now if (blah) { if (blah2) stuff; else stuff2; } Kent --- source/blender/python/api2_2x/Bone.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/python/api2_2x/Bone.c') 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; -- cgit v1.2.3