Similar to rBe97443478e32 and rBe772087ed664, exit early when
texture, collection and world ID has no parent to unlink from.
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
Similar issue is still present for texture and world material ID. Want me to add both in this patch?
This should show an error and not fail silently, otherwise it's confusing to the user. See rBe97443478e32, rB67254ea37cb4.
Besides that looks fine to me.
Don't mind much if you do it in the same patch or separate, but yeah I'd welcome the fixes of course :)
"It's not clear which object or object-data it should be unlinked from, there's no object or object-data [...]"
There are no objects or object data involved in the cases here (in most of them at least). Collections are unlinked from the scene or instance empties, worlds from the scene, and textures from freestyle line styles only.
The line wrapping of the messages is odd, besides that LGTM.
Thanks for working on this!