Operating system: Linux-4.15.0-96-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21
Broken: version: 2.83 (sub 17), branch: master, commit date: 2020-05-22 19:52, hash: rBe8dd8c2829f3
Short description of error
I have a script that appends a scene from another blend file, then attempts to link an object to that scene's master collection.
Doing this worked without any issue until rBe8dd8c2829f3 (or a bit earlier).
Now this error is thrown:
Traceback (most recent call last): File "/home/x/TEMP/blender/283/bugs/link_obj_to_master_collection/link_obj_to_master_collection.blend/Text", line 29, in <module> RuntimeError: Error: Could not link the object 'Plane.001' because the collection 'Master Collection' is linked.
It's possible to prevent this by running scene.collection.make_local() before attempting to link any object, but I'm wondering if that's supposed to be necessary?
Why would the collection of an appended scene be linked?
I have a prepared a blend file to reproduce the issue.
Exact steps for others to reproduce the error
- extract the zip and open link_obj_to_master_collection.blend
- from the Scripting workspace, run the script
- the error should pop up
- reload the blend and uncomment line 25, and it will run successfully