[Bf-blender-cvs] [809d1aa] fracture_modifier: transfer all speeds with dynamic fracture now, not only those above the sleep threshold
Martin Felke
noreply at git.blender.org
Fri Dec 23 20:25:28 CET 2016
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);
More information about the Bf-blender-cvs
mailing list