rigidbody: Further fix for background scenes
authorSergej Reich <sergej.reich@googlemail.com>
Sat, 16 Feb 2013 16:17:45 +0000 (16:17 +0000)
committerSergej Reich <sergej.reich@googlemail.com>
Sat, 16 Feb 2013 16:17:45 +0000 (16:17 +0000)
commitfda8927d01ba719963154a56b45952ee541a869d
tree481a8081680c63988e3690ca6998025ffc2d891b
parentd9cc542728aa45aa3615b1396e5a147ec5c08cfa
rigidbody: Further fix for background scenes

Since rigid bodies need their world to be be updated correctly we now
pass it alongside the parent scene in scene_update_tagged_recursive().

Add BKE_object_handle_update_ex() as well as other object functions
that take a RigidBodyWorld for this.

Ideally this shouldn't be needed but we'd have to restructure scene
handling for that. It's not a small taks however and definitely not
something that can be done before release.

Thanks to Campbell for review.
source/blender/blenkernel/BKE_object.h
source/blender/blenkernel/BKE_rigidbody.h
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/rigidbody.c
source/blender/blenkernel/intern/scene.c