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>2020-10-19 16:33:09 +0300
committerJulian Eisel <julian@blender.org>2020-10-19 16:38:55 +0300
commit9bf1bf599b46fe020cf1ae660a2fe4946146ecbd (patch)
treed0c3cea6b9b355f569b94b1dad340ab8cb9941f2 /source/blender
parent83124856d05ee4da605ab247e6286755690e54dd (diff)
Cleanup: Missing parentheses around macro in versioning
Although the `ELEM` macro wraps logic into parentheses, it's not intended to be used that way. Unexpanded macros should still follow regular coding style for readability and for tools parsing the code (it confused clang-format for example).
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenloader/intern/versioning_290.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c
index 5e6fdad8509..58dcce72823 100644
--- a/source/blender/blenloader/intern/versioning_290.c
+++ b/source/blender/blenloader/intern/versioning_290.c
@@ -858,7 +858,8 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
/* Ensure that particle systems generated by fluid modifier have correct phystype. */
LISTBASE_FOREACH (ParticleSettings *, part, &bmain->particles) {
- if ELEM (part->type, PART_FLUID_FLIP, PART_FLUID_SPRAY, PART_FLUID_BUBBLE, PART_FLUID_FOAM) {
+ if (ELEM(
+ part->type, PART_FLUID_FLIP, PART_FLUID_SPRAY, PART_FLUID_BUBBLE, PART_FLUID_FOAM)) {
part->phystype = PART_PHYS_NO;
}
}
@@ -876,4 +877,4 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
{
/* Keep this block, even when empty. */
}
-} \ No newline at end of file
+}