From 8198880d44ca3a7af4f3bbd16097beceb30ec029 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 9 Jan 2012 14:08:06 +0000 Subject: Fix #29793: Physics go crazy if frames get skipped Calculate cloth and softbody only for single frame time deltas (like it's already done for smoke) --- source/blender/blenkernel/BKE_cloth.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/BKE_cloth.h') diff --git a/source/blender/blenkernel/BKE_cloth.h b/source/blender/blenkernel/BKE_cloth.h index 2dfe9fd3402..62c3df7c6f4 100644 --- a/source/blender/blenkernel/BKE_cloth.h +++ b/source/blender/blenkernel/BKE_cloth.h @@ -85,6 +85,7 @@ typedef struct Cloth struct Implicit_Data *implicit; /* our implicit solver connects to this pointer */ struct Implicit_Data *implicitEM; /* our implicit solver connects to this pointer */ struct EdgeHash *edgehash; /* used for selfcollisions */ + int last_frame, pad4; } Cloth; /** -- cgit v1.2.3