Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2022-05-23 12:34:51 +0300
committerJulian Eisel <julian@blender.org>2022-05-23 17:55:43 +0300
commit16fd5fa656af41c519d9e1633a4a7fb5e09904f3 (patch)
treeabbe343f08a675a0baa2e90b4ad3b09e28eebc33 /source/blender/gpu/shaders
parent7f1a5f256752dec95fe1854006d0e8b28bd51b61 (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