Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Genrich <daniel.genrich@gmx.net>2008-03-20 21:16:11 +0300
committerDaniel Genrich <daniel.genrich@gmx.net>2008-03-20 21:16:11 +0300
commit9362772ffda053186780e5f976d43a99f7cfd699 (patch)
tree8d10a0fd7c0d2a1bec8b330fa8edc0d20ebfe0f8
parentf59d353af2b779515b4780e780004212cea60637 (diff)
Collision modifier: Update from mvert was using only static update, now uses dynamic update and catches therefore also faster movements - reported by nudelZ (#blendercoders)
-rw-r--r--source/blender/blenkernel/intern/collision.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/collision.c b/source/blender/blenkernel/intern/collision.c
index f2200a24ea2..ef69da0ed86 100644
--- a/source/blender/blenkernel/intern/collision.c
+++ b/source/blender/blenkernel/intern/collision.c
@@ -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) */