Commit: 8e21378e0560bf677b1f61b067838efefa479c3c
Author: Martin Felke
Date:   Wed Jun 21 14:48:34 2017 +0200
Branches: fracture_modifier
https://developer.blender.org/rB8e21378e0560bf677b1f61b067838efefa479c3c

take position for constraint between both rigidbodies for fixed constraints 
now, too

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

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

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

diff --git a/source/blender/blenkernel/intern/rigidbody.c 
b/source/blender/blenkernel/intern/rigidbody.c
index 16af2aca95f..1913dee9b7a 100644
--- a/source/blender/blenkernel/intern/rigidbody.c
+++ b/source/blender/blenkernel/intern/rigidbody.c
@@ -1822,10 +1822,10 @@ static void 
rigidbody_create_shard_physics_constraint(FractureModifierData* fmd,
                /* keep old constraint calculation for other fracture modes ! */
                /* do this for all constraints */
                /* location for fixed constraints doesnt matter, so keep old 
setting */
-               if (rbc->type == RBC_TYPE_FIXED) {
+/*             if (rbc->type == RBC_TYPE_FIXED) {
                        copy_v3_v3(rbc->pos, rbc->mi1->rigidbody->pos);
                }
-               else {
+               else*/ {
                        /* else set location to center */
                        add_v3_v3v3(rbc->pos, rbc->mi1->rigidbody->pos, 
rbc->mi2->rigidbody->pos);
                        mul_v3_fl(rbc->pos, 0.5f);

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

Reply via email to