diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-18 13:19:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-18 13:19:06 +0300 |
commit | 5869bf5002f6bb370ef62da62d8cf7d56178b663 (patch) | |
tree | dbe3de77a0e3ab1fa8ddbc89ea7467aec8481cc4 /source/blender/editors/transform | |
parent | b3814d8645a1f232478210d8a5ae00c101d8b045 (diff) |
Cleanup: fix compiler warnings.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_gizmo_3d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c index 480fe3429e0..b2efdcf51cd 100644 --- a/source/blender/editors/transform/transform_gizmo_3d.c +++ b/source/blender/editors/transform/transform_gizmo_3d.c @@ -1262,11 +1262,11 @@ void drawDial3d(const TransInfo *t) axis_idx = MAN_AXIS_ROT_Y; negate_v3_v3(mat_basis[2], tc->mtx[1]); } - else if (tc->mode & CON_AXIS2) { + else { + BLI_assert((tc->mode & CON_AXIS2) != 0); axis_idx = MAN_AXIS_ROT_Z; negate_v3_v3(mat_basis[2], tc->mtx[2]); } - else BLI_assert(0); } else { axis_idx = MAN_AXIS_ROT_C; |