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:
authorLukas Tönne <lukas.toenne@gmail.com>2015-03-02 13:46:10 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-03-02 13:47:42 +0300
commit4c723eb80e299eb6ca11ad72b5fcbe8746c4a854 (patch)
tree2163bab9d6237409baec8571afcf0ac0eae69b5a /source/blender/physics/intern/implicit_blender.c
parent1adfa36f88aa3c1273537e1566e166c8401d63e5 (diff)
Reshuffle applying of solver results a bit to ensure it works exactly
as complicated as before cloth solver changes. Still doesn't solve the collapsing cloth cube issue mentioned in T43406, probably the bending springs work somewhat differently now.
Diffstat (limited to 'source/blender/physics/intern/implicit_blender.c')
-rw-r--r--source/blender/physics/intern/implicit_blender.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/physics/intern/implicit_blender.c b/source/blender/physics/intern/implicit_blender.c
index 5b1d83a3eef..c732c1d25f4 100644
--- a/source/blender/physics/intern/implicit_blender.c
+++ b/source/blender/physics/intern/implicit_blender.c
@@ -1175,10 +1175,15 @@ bool BPH_mass_spring_solve_positions(Implicit_Data *data, float dt)
return true;
}
-void BPH_mass_spring_apply_result(Implicit_Data *data)
+void BPH_mass_spring_apply_positions(Implicit_Data *data)
{
int numverts = data->M[0].vcount;
cp_lfvector(data->X, data->Xnew, numverts);
+}
+
+void BPH_mass_spring_apply_velocities(Implicit_Data *data)
+{
+ int numverts = data->M[0].vcount;
cp_lfvector(data->V, data->Vnew, numverts);
}