Files
test/source/blender/blenkernel
Philipp Oeser 9c9664c823 Fix #109928: issues adding rigid bodies via just the world collection
Selecting a rigid body world collection is supposed to set up rigid
bodies for all of its mesh members (if they are not rigid bodies
already), expected result would be just the same as if `Object` > `Rigid
Body` > `Add ...` was used.

Doing it via just the world collection had the following issues though:
- calculating mass would crash on such a freshly created rigid body
objects (be1b32e4e4 falsely assumed `ob->rigidbody_object` is always
present on evaluated objects -- without tagging for depsgraph updates
this is not the case though)
- rigid body simulation would not work even on these freshly created
rigid body objects

Now tag bmain relations and object transforms for update to make both of
these work (following code in `BKE_rigidbody_add_object` that is used
when adding these through `Object` > `Rigid Body` > `Add ...`)

Pull Request: https://projects.blender.org/blender/blender/pulls/109961
2023-07-11 12:22:44 +02:00
..
2023-06-21 11:28:58 +10:00
2023-06-07 21:47:45 +10:00
2023-06-13 14:51:49 -04:00
2023-07-04 17:03:02 +02:00
2023-07-04 12:36:41 +10:00
2023-07-07 15:11:19 +10:00
2023-07-07 08:50:13 -04:00
2023-07-09 21:40:17 +10:00
2023-07-07 20:41:57 -06:00
2023-07-05 17:56:58 +02:00
2023-06-08 10:43:55 +10:00
2023-06-30 11:39:17 +02:00