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).
This commit is contained in:
Julian Eisel 2020-10-19 15:33:09 +02:00
parent 83124856d0
commit 9bf1bf599b
1 changed files with 3 additions and 2 deletions

View File

@ -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. */
}
}
}