From ceaf8e48ef5fbdb7e45a06b84bf24365ec5c5ed1 Mon Sep 17 00:00:00 2001 From: Sergej Reich Date: Sun, 3 Mar 2013 06:09:48 +0000 Subject: rigidbody: Revert to running simulation on frame update Instead of flagging the rigid body world for frame update just call BKE_rigidbody_do_simulation() recursively for all scenes. This avoids having to constantly check if the simulation needs to be updated. --- source/blender/makesdna/DNA_rigidbody_types.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/makesdna/DNA_rigidbody_types.h') diff --git a/source/blender/makesdna/DNA_rigidbody_types.h b/source/blender/makesdna/DNA_rigidbody_types.h index c144bc4e588..4a96c324f04 100644 --- a/source/blender/makesdna/DNA_rigidbody_types.h +++ b/source/blender/makesdna/DNA_rigidbody_types.h @@ -80,9 +80,7 @@ typedef enum eRigidBodyWorld_Flag { /* sim data needs to be rebuilt */ RBW_FLAG_NEEDS_REBUILD = (1 << 1), /* usse split impulse when stepping the simulation */ - RBW_FLAG_USE_SPLIT_IMPULSE = (1 << 2), - /* need to step simulation after frame update */ - RBW_FLAG_FRAME_UPDATE = (1 << 3) + RBW_FLAG_USE_SPLIT_IMPULSE = (1 << 2) } eRigidBodyWorld_Flag; /* ******************************** */ -- cgit v1.2.3