[Bf-blender-cvs] [358664a] master: Use int for i in hair smoothing function, we check against negative values below

Antony Riakiotakis noreply at git.blender.org
Tue May 20 09:50:13 CEST 2014


Commit: 358664a28a526750fa61c6342cd8860d69398f66
Author: Antony Riakiotakis
Date:   Mon May 19 22:16:47 2014 +0300
https://developer.blender.org/rB358664a28a526750fa61c6342cd8860d69398f66

Use int for i in hair smoothing function, we check against negative
values below

===================================================================

M	source/blender/blenkernel/intern/implicit.c

===================================================================

diff --git a/source/blender/blenkernel/intern/implicit.c b/source/blender/blenkernel/intern/implicit.c
index e28fb59..6682b1a 100644
--- a/source/blender/blenkernel/intern/implicit.c
+++ b/source/blender/blenkernel/intern/implicit.c
@@ -1432,7 +1432,7 @@ static void hair_velocity_smoothing(ClothModifierData *clmd, lfVector *lF, lfVec
 	float smoothfac = 2.0f * clmd->sim_parms->velocity_smooth;
 	float collfac = 2.0f * clmd->sim_parms->collider_friction;
 	unsigned int	v = 0;
-	unsigned int	i = 0;
+	int	            i = 0;
 	int				j = 0;
 	int				k = 0;




More information about the Bf-blender-cvs mailing list