diff options
author | Julian Eisel <julian@blender.org> | 2022-05-23 12:34:51 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-05-23 17:55:43 +0300 |
commit | 16fd5fa656af41c519d9e1633a4a7fb5e09904f3 (patch) | |
tree | abbe343f08a675a0baa2e90b4ad3b09e28eebc33 /source/blender/gpu/shaders | |
parent | 7f1a5f256752dec95fe1854006d0e8b28bd51b61 (diff) |
Cleanup: Early-exit in button handling code, minor cleanups
This should decrease cognitive load because:
- Intention is more explicit
- Shorter visual scope of branches (no need to search for matching
closing brackets and `else` blocks)
- Visually less busy code because condition-checks and code that
"actually does things" are separated, with less indentation
- Avoids chaining together a bunch of conditions to a single `if`
Also: Use `const`, correct comment placement, whitespace improvements.
Diffstat (limited to 'source/blender/gpu/shaders')
0 files changed, 0 insertions, 0 deletions