Files
test/source/blender/blenkernel/intern
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 09:14:36 +11:00
2022-04-20 10:41:31 +10:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-03-30 11:38:24 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-04-12 10:02:33 -03:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-03-09 10:13:43 +11:00
2022-04-28 10:53:50 -05:00
2022-03-09 10:13:43 +11:00
2022-04-28 10:53:50 -05:00
2022-02-11 09:14:36 +11:00
2022-02-25 13:22:42 +01:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-04-04 15:43:25 +10:00
2022-04-28 10:53:50 -05:00
2022-04-15 16:40:01 +02:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-04-02 06:14:27 +02:00
2022-03-09 10:13:43 +11:00