Files
test2/source/blender/blenkernel
Bastien Montagne e72b86d3cb Fix T98469: Crash trying to add an object to a linked collection that is linked to multiple scenes.
Crash happened because code could not find a valid base in current scene
after adding the object, added some checks for that.

Root of the issue was wrong assumptions in `BKE_object_add` logic, which
would pick the first valid ancestor collection in case initially
selected collection was not editable. In some case, this could pick a
collection not instanced in the current scene's view layer, leading to
not getting a valid base for the newly added object.

Addressed this by adding a new variant of `BKE_collection_object_add`,
`BKE_collection_viewlayer_object_add`, which ensures final collection is
in given viewlayer.
2022-06-01 15:04:34 +02:00
..
2022-02-11 10:28:59 +01:00
2022-05-02 10:35:39 +02:00
2022-03-21 18:59:03 +01:00
2022-02-11 09:14:36 +11:00
2022-04-20 10:41:31 +10:00
2022-02-11 09:14:36 +11:00
2022-04-18 12:36:37 -05:00
2022-03-30 11:38:24 +11:00
2022-02-11 09:14:36 +11:00
2022-04-20 10:41:31 +10:00