diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 12:49:59 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 13:01:40 +0300 |
commit | 156448ba4ba350dd6f9718b4610f14f4ba187af6 (patch) | |
tree | 5ad43590fbf4d7536f58a38935cbbac3c2ec27bd /source/blender/draw/engines/overlay/overlay_extra.c | |
parent | 88cc3f167f7ee404640289ed9cfd6b13f0494d98 (diff) |
Cleanup: Draw, Clang-Tidy else-after-return fixes (incomplete)
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/draw` module. Not all warnings are addressed
in this commit.
No functional changes.
Diffstat (limited to 'source/blender/draw/engines/overlay/overlay_extra.c')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_extra.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_extra.c b/source/blender/draw/engines/overlay/overlay_extra.c index 60e622ca706..c7c4e2b1a3a 100644 --- a/source/blender/draw/engines/overlay/overlay_extra.c +++ b/source/blender/draw/engines/overlay/overlay_extra.c @@ -1018,9 +1018,8 @@ static float camera_offaxis_shiftx_get(Scene *scene, const float width = instdata->corner_x * 2.0f; return delta_shiftx * width; } - else { - return 0.0; - } + + return 0.0; } /** * Draw the stereo 3d support elements (cameras, plane, volume). |