diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-25 08:14:13 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-25 08:34:32 +0300 |
commit | c9e35c2ced92082c86f1ecb9ecd16c6230218c7c (patch) | |
tree | 24bd862961d2bbfa022cfc3c5262cfe1e63550b3 /source/blender/draw/engines/workbench | |
parent | 865894481ce76325d817533c654bda2ce2e65c66 (diff) |
Cleanup: remove redundant double parenthesis
Diffstat (limited to 'source/blender/draw/engines/workbench')
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_data.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_data.c b/source/blender/draw/engines/workbench/workbench_data.c index f7f156e5297..3ea0805b8f1 100644 --- a/source/blender/draw/engines/workbench/workbench_data.c +++ b/source/blender/draw/engines/workbench/workbench_data.c @@ -173,7 +173,7 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd) if (!v3d || (v3d->shading.type == OB_RENDER && BKE_scene_uses_blender_workbench(scene))) { short shading_flag = scene->display.shading.flag; - if (XRAY_FLAG_ENABLED((&scene->display))) { + if (XRAY_FLAG_ENABLED(&scene->display)) { /* Disable shading options that aren't supported in transparency mode. */ shading_flag &= ~(V3D_SHADING_SHADOW | V3D_SHADING_CAVITY | V3D_SHADING_DEPTH_OF_FIELD); } @@ -187,8 +187,8 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd) wpd->shading = scene->display.shading; wpd->shading.flag = shading_flag; - if (XRAY_FLAG_ENABLED((&scene->display))) { - wpd->shading.xray_alpha = XRAY_ALPHA((&scene->display)); + if (XRAY_FLAG_ENABLED(&scene->display)) { + wpd->shading.xray_alpha = XRAY_ALPHA(&scene->display); } else { wpd->shading.xray_alpha = 1.0f; |