Commit: 809d1aa1e050046c7278c704a16f5cd5076fcb9b
Author: Martin Felke
Date:   Fri Dec 23 20:24:08 2016 +0100
Branches: fracture_modifier
https://developer.blender.org/rB809d1aa1e050046c7278c704a16f5cd5076fcb9b

transfer all speeds with dynamic fracture now, not only those above the sleep 
threshold

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

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

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

diff --git a/source/blender/blenkernel/intern/rigidbody.c 
b/source/blender/blenkernel/intern/rigidbody.c
index a3cf18d..b76f2e2 100644
--- a/source/blender/blenkernel/intern/rigidbody.c
+++ b/source/blender/blenkernel/intern/rigidbody.c
@@ -1299,13 +1299,13 @@ void BKE_rigidbody_validate_sim_shard(RigidBodyWorld 
*rbw, MeshIsland *mi, Objec
 
                if (transfer_speeds)
                {
-                       if ((len_squared_v3(rbo->lin_vel) > 
(rbo->lin_sleep_thresh * rbo->lin_sleep_thresh)))
+                       //if ((len_squared_v3(rbo->lin_vel) > 
(rbo->lin_sleep_thresh * rbo->lin_sleep_thresh)))
                        {
                                //printf("Setting linear velocity (%f, %f, 
%f)\n", rbo->lin_vel[0], rbo->lin_vel[1], rbo->lin_vel[2]);
                                
RB_body_set_linear_velocity(rbo->physics_object, rbo->lin_vel);
                        }
 
-                       if ((len_squared_v3(rbo->ang_vel) > 
(rbo->ang_sleep_thresh * rbo->ang_sleep_thresh)))
+                       //if ((len_squared_v3(rbo->ang_vel) > 
(rbo->ang_sleep_thresh * rbo->ang_sleep_thresh)))
                        {
                                //printf("Setting angular velocity (%f, %f, 
%f)\n", rbo->ang_vel[0], rbo->ang_vel[1], rbo->ang_vel[2]);
                                
RB_body_set_angular_velocity(rbo->physics_object, rbo->ang_vel);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to