[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14362] trunk/blender/source/blender/src/ buttons_object.c: fix compiler warnings - deja vu all over again.
Stephen Swaney
sswaney at centurytel.net
Tue Apr 8 18:50:20 CEST 2008
Revision: 14362
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14362
Author: stiv
Date: 2008-04-08 18:50:20 +0200 (Tue, 08 Apr 2008)
Log Message:
-----------
fix compiler warnings - deja vu all over again.
buttons_object.c:2326: warning: too many arguments for format
buttonns_object.c:3829: warning: ordered comparison of pointer with integer zero
Modified Paths:
--------------
trunk/blender/source/blender/src/buttons_object.c
Modified: trunk/blender/source/blender/src/buttons_object.c
===================================================================
--- trunk/blender/source/blender/src/buttons_object.c 2008-04-08 16:36:50 UTC (rev 14361)
+++ trunk/blender/source/blender/src/buttons_object.c 2008-04-08 16:50:20 UTC (rev 14362)
@@ -2323,7 +2323,7 @@
BLI_addtail(&ob->particlesystem,psys);
md= modifier_new(eModifierType_ParticleSystem);
- sprintf(md->name, "FluidParticleSystem", BLI_countlist(&ob->particlesystem));
+ sprintf(md->name, "FluidParticleSystem" );
psmd= (ParticleSystemModifierData*) md;
psmd->psys=psys;
BLI_addtail(&ob->modifiers, md);
@@ -3826,7 +3826,7 @@
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);
More information about the Bf-blender-cvs
mailing list