Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-01-11 14:35:19 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-01-11 14:42:18 +0300
commitca405a73b4f6c93f2d3833337af0763c15743fb0 (patch)
tree879cffa70a113917c271f69d920a38cafaa8b7dd /source/blender/physics
parent7f4850fbc5281e4d3e5393ed514ba8f5a0dfc0f8 (diff)
Fix T47148: Hair grid dos not work.
Actually, it was the whole 'cloth' simulation of hairs that was broken, since grid data could not be initialized correctly. Stupid mistake from looptri conversion, rBc582e186d90291a19a4e404111c492f1fd2c41a4
Diffstat (limited to 'source/blender/physics')
-rw-r--r--source/blender/physics/intern/BPH_mass_spring.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/physics/intern/BPH_mass_spring.cpp b/source/blender/physics/intern/BPH_mass_spring.cpp
index 30a8478e0e4..29f5ed63cac 100644
--- a/source/blender/physics/intern/BPH_mass_spring.cpp
+++ b/source/blender/physics/intern/BPH_mass_spring.cpp
@@ -444,11 +444,11 @@ static void hair_get_boundbox(ClothModifierData *clmd, float gmin[3], float gmax
{
Cloth *cloth = clmd->clothObject;
Implicit_Data *data = cloth->implicit;
- unsigned int looptri_num = cloth->tri_num;
+ unsigned int mvert_num = cloth->mvert_num;
int i;
INIT_MINMAX(gmin, gmax);
- for (i = 0; i < looptri_num; i++) {
+ for (i = 0; i < mvert_num; i++) {
float x[3];
BPH_mass_spring_get_motion_state(data, i, x, NULL);
DO_MINMAX(x, gmin, gmax);