Blender Git Loki

Git Commits -> Revision 5ff6a5c

Revision 5ff6a5c by Sergej Reich (master)
March 3, 2013, 06:09 (GMT)
rigidbody: Fix inconsistency with world rebuilding

The rigid body world could be rebuilt on start frame and one frame after
start frame. The latter was necessary sice animation playback usually
doesn't start at start frame.
This lead to different simulations depending on which frame the
simulaton was rebuilt when animation was involved.

Now we only rebuild the world on start frame.
This is actually tricky to do since, as mentioned above, animation
playback starts on second frame. To work around this we rebuild the
world before the actual update.
The alternative would be to rebuld the world on every simulation change
(like the other simulations do it) but this is an expensive operation
and would be too slow.

Commit Details:

Full Hash: 5ff6a5c6abe36b1521d310b0f7e0f6dfd3afa1f3
SVN Revision: 54990
Parent Commit: b390192
Lines Changed: +41, -14

3 Modified Paths:

/source/blender/blenkernel/BKE_rigidbody.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/rigidbody.c (+24, -13) (Diff)
/source/blender/blenkernel/intern/scene.c (+16, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021