diff options
author | Kent Mein <mein@cs.umn.edu> | 2006-01-05 23:52:51 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2006-01-05 23:52:51 +0300 |
commit | 2901da3c29087f5db3fadcbc6a2b3e05d8cdf0fb (patch) | |
tree | 50a28a78abede694cfb7cc0e7424dc1fdca8ee00 /source/blender/python/api2_2x/Bone.c | |
parent | 75032534f38e6609619f30fc2e511f717d37e74b (diff) |
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
Diffstat (limited to 'source/blender/python/api2_2x/Bone.c')
-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; |