diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-09-04 12:26:26 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-09-04 12:26:26 +0300 |
commit | 371ddda4d0b3c2ef0c40f604715db801dc33b669 (patch) | |
tree | 436685331cde6d6494b132c6665a3fca43d2e9e3 /source/blender/editors/physics/particle_edit.c | |
parent | aa4cf47e403ba3f098d89e991dafc9fec30423c4 (diff) |
Cleanup: Clang-Tidy readability-redundant-preprocessor fixes
Remove redundantly nested `#if` and `#ifdef` statements.
One nested `#if 0` block was left untouched, as it's in particle code
that's no longer maintained. Furthermore, that block also has some
explanation as to the differences between the enabled & disabled parts.
One nested `#if 0` construct was completely removed, leaving only the
actually used bit of code. There was no explanation as to the usefulness
of the disabled code, and it hasn't been touched in years.
No functional changes.
Diffstat (limited to 'source/blender/editors/physics/particle_edit.c')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index eb7ddfefb9c..b403863f28b 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -3776,6 +3776,7 @@ static void brush_puff(PEData *data, int point_index, float mouse_distance) #else /* translate (not rotate) the rest of the hair if its not selected */ { +/* NOLINTNEXTLINE: readability-redundant-preprocessor */ # if 0 /* kindof works but looks worse then what's below */ /* Move the unselected point on a vector based on the |