Collision modifier: Update from mvert was using only static update, now uses dynamic update and catches therefore also faster movements - reported by nudelZ (#blendercoders)

This commit is contained in:
Daniel Genrich
2008-03-20 18:16:11 +00:00
parent f59d353af2
commit 9362772ffd

View File

@@ -69,6 +69,7 @@ void collision_move_object(CollisionModifierData *collmd, float step, float prev
VECADDS(collmd->current_xnew[i].co, collmd->x[i].co, tv, step);
VECSUB(collmd->current_v[i].co, collmd->current_xnew[i].co, collmd->current_x[i].co);
}
bvh_update_from_mvert(collmd->tree, collmd->current_x, collmd->numverts, collmd->current_xnew, 1);
}
/* build bounding volume hierarchy from mverts (see kdop.c for whole BVH code) */