Draw: Use proper continue when psys is disabled
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 7 Jun 2018 08:12:47 +0000 (10:12 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 7 Jun 2018 09:31:56 +0000 (11:31 +0200)
source/blender/draw/engines/basic/basic_engine.c
source/blender/draw/engines/clay/clay_engine.c
source/blender/draw/engines/workbench/workbench_deferred.c
source/blender/draw/engines/workbench/workbench_forward.c
source/blender/draw/modes/object_mode.c

index c86574f75570f0a9c6e4ae70658f120116801a63..2c771578514e196c9ae2d467e288c5f776b42bdb 100644 (file)
@@ -155,7 +155,7 @@ static void basic_cache_populate(void *vedata, Object *ob)
                        continue;
                }
                if (!DRW_check_psys_visible_within_active_context(ob, psys)) {
-                       return;
+                       continue;
                }
                ParticleSettings *part = psys->part;
                const int draw_as = (part->draw_as == PART_DRAW_REND) ? part->ren_as : part->draw_as;
index d08fee6039fad7f342460f865a5ca1ac9949e4a4..5d3717097b11a21723321d520d11b2a1847d1812 100644 (file)
@@ -838,7 +838,7 @@ static void clay_cache_populate_particles(void *vedata, Object *ob)
                        continue;
                }
                if (!DRW_check_psys_visible_within_active_context(ob, psys)) {
-                       return;
+                       continue;
                }
                ParticleSettings *part = psys->part;
                const int draw_as = (part->draw_as == PART_DRAW_REND) ? part->ren_as : part->draw_as;
index 9e71ba551a1cac54d34f0cd6a107f98080162ae9..428e5d4f7c8e2998f9c57a4b03971b565fa36ebd 100644 (file)
@@ -618,7 +618,7 @@ static void workbench_cache_populate_particles(WORKBENCH_Data *vedata, Object *o
                        continue;
                }
                if (!DRW_check_psys_visible_within_active_context(ob, psys)) {
-                       return;
+                       continue;
                }
                ParticleSettings *part = psys->part;
                const int draw_as = (part->draw_as == PART_DRAW_REND) ? part->ren_as : part->draw_as;
index f313aee30ecd65c10ec1a6350d946e2bf12dd5a6..8bd27e18da2ccde7e8fe8335cb535b5edd8df3aa 100644 (file)
@@ -457,7 +457,7 @@ static void workbench_forward_cache_populate_particles(WORKBENCH_Data *vedata, O
                        continue;
                }
                if (!DRW_check_psys_visible_within_active_context(ob, psys)) {
-                       return;
+                       continue;
                }
                ParticleSettings *part = psys->part;
                const int draw_as = (part->draw_as == PART_DRAW_REND) ? part->ren_as : part->draw_as;
index ff6fcdb83d21cf95c561cfb5efaf3b853b38fecd..37a4928cba47958cb47564cf786d9acdaf0979d3 100644 (file)
@@ -1992,7 +1992,7 @@ static void OBJECT_cache_populate_particles(Object *ob,
                        continue;
                }
                if (!DRW_check_psys_visible_within_active_context(ob, psys)) {
-                       return;
+                       continue;
                }
 
                ParticleSettings *part = psys->part;