Cleanup: style, duplicate header
[blender.git] / source / blender / draw / engines / basic / basic_engine.c
index 4348f2182a4a57ca80eaf61aec382b6e740c1396..5a315cde2b50f593c9658aba760fd40da4f35d27 100644 (file)
@@ -150,7 +150,7 @@ static void basic_cache_populate(void *vedata, Object *ob)
                for (ParticleSystem *psys = ob->particlesystem.first;
                     psys != NULL;
                     psys = psys->next)
-               {
+               {
                        if (!psys_check_enabled(ob, psys, false)) {
                                continue;
                        }
@@ -158,8 +158,7 @@ static void basic_cache_populate(void *vedata, Object *ob)
                                continue;
                        }
                        ParticleSettings *part = psys->part;
-                       const int draw_as = (part->draw_as == PART_DRAW_REND) ? part->ren_as
-                                                                             : part->draw_as;
+                       const int draw_as = (part->draw_as == PART_DRAW_REND) ? part->ren_as : part->draw_as;
                        if (draw_as == PART_DRAW_PATH) {
                                struct Gwn_Batch *hairs = DRW_cache_particles_get_hair(ob, psys, NULL);
                                DRW_shgroup_call_add(stl->g_data->depth_shgrp, hairs, NULL);