diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-03 18:05:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-03 18:05:21 +0300 |
commit | bfdb88f3f4a49249cea9ad954eb3b08ea290b81b (patch) | |
tree | eccf98a7ea2b12b3d00a8564df398ae7ea3cffc8 /source/blender/blenkernel/intern/particle.c | |
parent | 06a62d4e06445506b69b9d83c3ab5480254d40da (diff) |
Cleanup: rename list count_ex -> count_at_most
Diffstat (limited to 'source/blender/blenkernel/intern/particle.c')
-rw-r--r-- | source/blender/blenkernel/intern/particle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c index d7e08233601..04c365eee76 100644 --- a/source/blender/blenkernel/intern/particle.c +++ b/source/blender/blenkernel/intern/particle.c @@ -3165,7 +3165,7 @@ ModifierData *object_add_particle_system(Scene *scene, Object *ob, const char *n psys->part = BKE_particlesettings_add(NULL, DATA_("ParticleSettings")); - if (BLI_listbase_count_ex(&ob->particlesystem, 2) > 1) + if (BLI_listbase_count_at_most(&ob->particlesystem, 2) > 1) BLI_snprintf(psys->name, sizeof(psys->name), DATA_("ParticleSystem %i"), BLI_listbase_count(&ob->particlesystem)); else BLI_strncpy(psys->name, DATA_("ParticleSystem"), sizeof(psys->name)); |