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:
authorDaniel Genrich <daniel.genrich@gmx.net>2008-02-13 13:44:36 +0300
committerDaniel Genrich <daniel.genrich@gmx.net>2008-02-13 13:44:36 +0300
commit31922633670f03ceb2e963984e418fecd1a59d40 (patch)
tree0065c9a0f2b528a2e0c206d1a6a08e87a398636d /source/blender/src/editmesh.c
parent5c7f41118cc71f44f4aec59d5d4acdee78ddae68 (diff)
Cloth: changes in editmode will influence the velocity by 10% now, changed/add some update calls for the implicit function
Diffstat (limited to 'source/blender/src/editmesh.c')
-rw-r--r--source/blender/src/editmesh.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c
index 7f9391238dd..ee7c73264e3 100644
--- a/source/blender/src/editmesh.c
+++ b/source/blender/src/editmesh.c
@@ -1122,12 +1122,12 @@ void load_editMesh(void)
VECCOPY(cloth->verts[i].x, eve->co);
Mat4MulVecfl ( G.obedit->obmat, cloth->verts[i].x );
- /*
+
// not physical correct but gives nicer results when commented
VECSUB(temp, cloth->verts[i].x, temp);
- VecMulf(temp, 1.0f / dt);
+ VecMulf(temp, 1.0f / (dt*10.0));
VECADD(cloth->verts[i].v, cloth->verts[i].v, temp);
- */
+
if(oldverts) {
VECCOPY(mvert->co, oldverts[i].co);
if(G.rt > 0)
@@ -1171,12 +1171,9 @@ void load_editMesh(void)
if(G.rt > 0)
printf("loadmesh --> cloth_enabled cloth_write_cache\n");
cloth_write_cache(G.obedit, clmd, clmd->sim_parms->editedframe);
+ cloth_read_cache(G.obedit, clmd, G.scene->r.cfra);
+ implicit_set_positions(clmd);
- /* in this case we have to get the data for the requested frame */
- if(clmd->sim_parms->editedframe != G.scene->r.cfra)
- {
- cloth_read_cache(G.obedit, clmd, G.scene->r.cfra);
- }
clmd->sim_parms->flags &= ~CLOTH_SIMSETTINGS_FLAG_EDITMODE;
}
else