Page MenuHome

Render: Update lightgroup membership in objects and world if lightgroup is renamed
ClosedPublic

Authored by Lukas Stockner (lukasstockner97) on Apr 23 2022, 11:09 PM.

Details

Summary

As discussed, this only updates objects in and the world of the scene to which the view layer belongs, which also avoids the problem of not having a BMain available.

Diff Detail

Repository
rB Blender
Branch
rename-lightgroups (branched from master)
Build Status
Buildable 21766
Build 21766: arc lint + arc unit

Event Timeline

Lukas Stockner (lukasstockner97) created this revision.
Brecht Van Lommel (brecht) requested changes to this revision.Apr 25 2022, 4:24 PM
Brecht Van Lommel (brecht) added inline comments.
source/blender/blenkernel/intern/layer.c
2603

You have to make sure to not edit linked objects (ID_IS_LINKED(ob)) and worlds.

This revision now requires changes to proceed.Apr 25 2022, 4:24 PM

Included check for linked objects and world.

Just to make sure, ID_IS_OVERRIDE_LIBRARY is not relevant here?

ID_IS_OVERRIDE_LIBRARY is not relevant. Overrides are local datablocks that are editable,

This revision is now accepted and ready to land.May 16 2022, 2:25 PM