[Bf-blender-cvs] [f0e8690] master: Fix for wind force function call.

Lukas Tönne noreply at git.blender.org
Tue Jan 20 09:53:13 CET 2015


Commit: f0e86905261713f5ea1cd572b6c40b6c5587110f
Author: Lukas Tönne
Date:   Mon Jan 19 20:20:03 2015 +0100
Branches: master
https://developer.blender.org/rBf0e86905261713f5ea1cd572b6c40b6c5587110f

Fix for wind force function call.

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

M	source/blender/physics/intern/BPH_mass_spring.cpp

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

diff --git a/source/blender/physics/intern/BPH_mass_spring.cpp b/source/blender/physics/intern/BPH_mass_spring.cpp
index 98a04de..e9bf376 100644
--- a/source/blender/physics/intern/BPH_mass_spring.cpp
+++ b/source/blender/physics/intern/BPH_mass_spring.cpp
@@ -503,10 +503,9 @@ static void cloth_calc_force(ClothModifierData *clmd, float UNUSED(frame), ListB
 			for (LinkNode *link = cloth->springs; link; link = link->next) {
 				ClothSpring *spring = (ClothSpring *)link->link;
 				if (spring->type == CLOTH_SPRING_TYPE_STRUCTURAL)
-
 					hair_ij = &hairdata[spring->ij];
 					hair_kl = &hairdata[spring->kl];
-					BPH_mass_spring_force_edge_wind(data, si_ij, si_kl, hair_ij->radius, hair_kl->radius, winvec);
+					BPH_mass_spring_force_edge_wind(data, spring->ij, spring->kl, hair_ij->radius, hair_kl->radius, winvec);
 			}
 		}




More information about the Bf-blender-cvs mailing list