diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2008-04-06 17:44:50 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2008-04-06 17:44:50 +0400 |
commit | 6c3bd2a02d68d937197f897c0b75d05b4ae75820 (patch) | |
tree | 307440e87d823bba4a660d11f8d10441b01eaf09 /source | |
parent | 9edb6c7510742fb9461be179549552374b8aabc9 (diff) |
fix compiler warnings.
I'm not sure about the intent for this one:
warning: too many arguments for format:
sprintf(md->name, "FluidParticleSystem", BLI_countlist(&ob->particlesystem));
Something for Janne ?
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/buttons_object.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c index c34191acb93..91cdc90a7df 100644 --- a/source/blender/src/buttons_object.c +++ b/source/blender/src/buttons_object.c @@ -2323,7 +2323,11 @@ void do_object_panels(unsigned short event) BLI_addtail(&ob->particlesystem,psys); md= modifier_new(eModifierType_ParticleSystem); +/* +fixme - warning: too many arguments for format sprintf(md->name, "FluidParticleSystem", BLI_countlist(&ob->particlesystem)); +*/ + sprintf(md->name, "FluidParticleSystem"); psmd= (ParticleSystemModifierData*) md; psmd->psys=psys; BLI_addtail(&ob->modifiers, md); @@ -3825,7 +3829,7 @@ static void sb_clear_cache(void *ob_v, void *actsoft_v) Object *ob = ob_v; short *actsoft = actsoft_v; - if(actsoft >= 0) + if(actsoft) clear_particles_from_cache(ob, BLI_findlink(&ob->particlesystem, *actsoft), CFRA); else softbody_clear_cache(ob, CFRA); |