[Bf-blender-cvs] [ed840c8] fracture_modifier: fix, let the FM shards respond to animated gravity in scene

Martin Felke noreply at git.blender.org
Mon Nov 7 21:27:28 CET 2016


Commit: ed840c8efb16599931cf3558920f4439ba3116e2
Author: Martin Felke
Date:   Mon Nov 7 21:26:59 2016 +0100
Branches: fracture_modifier
https://developer.blender.org/rBed840c8efb16599931cf3558920f4439ba3116e2

fix, let the FM shards respond to animated gravity in scene

===================================================================

M	source/blender/blenkernel/intern/rigidbody.c

===================================================================

diff --git a/source/blender/blenkernel/intern/rigidbody.c b/source/blender/blenkernel/intern/rigidbody.c
index 9a0699f..07b245e 100644
--- a/source/blender/blenkernel/intern/rigidbody.c
+++ b/source/blender/blenkernel/intern/rigidbody.c
@@ -3844,9 +3844,10 @@ static void rigidbody_update_simulation(Scene *scene, RigidBodyWorld *rbw, bool
 	/* update world */
 	if (rebuild) {
 		BKE_rigidbody_validate_sim_world(scene, rbw, true);
-		rigidbody_update_sim_world(scene, rbw);
 	}
 
+	rigidbody_update_sim_world(scene, rbw);
+
 	/* update objects */
 	for (go = rbw->group->gobject.first; go; go = go->next) {
 		Object *ob = go->ob;




More information about the Bf-blender-cvs mailing list