diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-04-21 11:43:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-04-21 11:43:54 +0300 |
commit | 3e7968c35f8eead4cb74146754d306afc25a3d62 (patch) | |
tree | 47d1772e67aea69fbced0c633cbc300099b821af /source/blender/draw/intern/draw_view.c | |
parent | 15d73e53c3a8381cff2006b5b7c43fdb57a72648 (diff) |
Draw Manager: don't assign bool from flags
Some MSVC versions don't support this.
Diffstat (limited to 'source/blender/draw/intern/draw_view.c')
-rw-r--r-- | source/blender/draw/intern/draw_view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c index b6a27c88a9e..4816b66220c 100644 --- a/source/blender/draw/intern/draw_view.c +++ b/source/blender/draw/intern/draw_view.c @@ -351,9 +351,9 @@ static void drawfloor(Scene *scene, View3D *v3d, const char **grid_unit) const bool show_floor = (v3d->gridflag & V3D_SHOW_FLOOR) && gridlines >= 1; - bool show_axis_x = v3d->gridflag & V3D_SHOW_X; - bool show_axis_y = v3d->gridflag & V3D_SHOW_Y; - bool show_axis_z = v3d->gridflag & V3D_SHOW_Z; + bool show_axis_x = (v3d->gridflag & V3D_SHOW_X) != 0; + bool show_axis_y = (v3d->gridflag & V3D_SHOW_Y) != 0; + bool show_axis_z = (v3d->gridflag & V3D_SHOW_Z) != 0; unsigned char col_grid[3], col_axis[3]; |