Commit: 0ab52e7f5144283a83334ae71535801fa941cff4
Author: Martin Felke
Date:   Wed Jan 27 23:46:38 2016 +0100
Branches: fracture_modifier
https://developer.blender.org/rB0ab52e7f5144283a83334ae71535801fa941cff4

fix: added extra update call on hook object in custom modifier evaluation

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

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

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

diff --git a/source/blender/blenkernel/intern/rigidbody.c 
b/source/blender/blenkernel/intern/rigidbody.c
index eb82929..48dd9e3 100644
--- a/source/blender/blenkernel/intern/rigidbody.c
+++ b/source/blender/blenkernel/intern/rigidbody.c
@@ -3757,6 +3757,7 @@ bool BKE_rigidbody_check_sim_running(RigidBodyWorld *rbw, 
float ctime)
 static void rigidbody_passive_hook(FractureModifierData *fmd, MeshIsland *mi, 
Object* ob)
 {
        RigidBodyOb *rbo = mi->rigidbody;
+       Scene *scene = fmd->modifier.scene;
 
        if (rbo->type == RBO_TYPE_PASSIVE && !(rbo->flag & RBO_FLAG_KINEMATIC))
        {
@@ -3791,6 +3792,8 @@ static void rigidbody_passive_hook(FractureModifierData 
*fmd, MeshIsland *mi, Ob
                                        if (!hmd->object)
                                                continue;
 
+                                       BKE_object_where_is_calc(scene, 
hmd->object);
+
                                        vertexCos = MEM_callocN(sizeof(float) * 
3 * totvert, "Vertex Cos");
                                        dm->getVertCos(dm, vertexCos);
                                        copy_v3_v3(old, 
vertexCos[mi->vertex_indices[0]]);

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

Reply via email to