diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-07-01 09:57:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-07-01 09:57:18 +0300 |
commit | a77edab3209a99c7c8f8294d64d25c994cb67f44 (patch) | |
tree | 3feb186a90c2a29fc4d0d669f16136af73762055 /source/blender/editors/util | |
parent | 58d65dd9761aa160fad59937a6733ce611919f37 (diff) |
Cleanup: use bools
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r-- | source/blender/editors/util/ed_transverts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/util/ed_transverts.c b/source/blender/editors/util/ed_transverts.c index c3eef94f4bb..b0970cdfd48 100644 --- a/source/blender/editors/util/ed_transverts.c +++ b/source/blender/editors/util/ed_transverts.c @@ -318,9 +318,9 @@ void ED_transverts_create_from_obedit(TransVertStore *tvs, Object *obedit, const for (ebo = arm->edbo->first; ebo; ebo = ebo->next) { if (ebo->layer & arm->layer) { - short tipsel = (ebo->flag & BONE_TIPSEL); - short rootsel = (ebo->flag & BONE_ROOTSEL); - short rootok = (!(ebo->parent && (ebo->flag & BONE_CONNECTED) && (ebo->parent->flag & BONE_TIPSEL))); + const bool tipsel = (ebo->flag & BONE_TIPSEL) != 0; + const bool rootsel = (ebo->flag & BONE_ROOTSEL) != 0; + const bool rootok = (!(ebo->parent && (ebo->flag & BONE_CONNECTED) && (ebo->parent->flag & BONE_TIPSEL))); if ((tipsel && rootsel) || (rootsel)) { /* Don't add the tip (unless mode & TM_ALL_JOINTS, for getting all joints), |