diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-14 15:30:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-14 15:31:06 +0300 |
commit | 69a04c61402cf4e09927640d2588764bcfd2a357 (patch) | |
tree | cd9c5e1270b4a375265c8e66614ee57a410aa825 /source/blender/editors/space_view3d | |
parent | 69a9bcc2067bfc975ad3e9aa2e61eb7b76c2b187 (diff) |
Cleanup: correct flag comparisons
Also use smaller types for shading data.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index 044cb56d367..4fe2fe08fc9 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -1333,8 +1333,9 @@ static void space_view3d_listener( switch (wmn->data) { case ND_WORLD_DRAW: case ND_WORLD: - if (v3d->shading.background_type & V3D_SHADING_BACKGROUND_WORLD) + if (v3d->shading.background_type == V3D_SHADING_BACKGROUND_WORLD) { ED_area_tag_redraw_regiontype(sa, RGN_TYPE_WINDOW); + } break; } break; |