Files
test2/source
Pratik Borhade e246838639 Fix #145957: Outliner Indirect Only option is greyed out on sub collections
Unlike other properties, "indirect only" restriction toggle doesn't
depend on parent. Meaning, when parent has the value disabled, it is
still possible to control the sub-collection value. That said, we don't
want to grey out the property when parent has the value `OFF`. To fix
this, remove the if condition which checks the parent value before
obtaining the value of current tree element. This  `layer_collection_indirect_only`
is later used inside drawing code to set/unset the `UI_BUT_INACTIVE`
flag

See images in PR description

Pull Request: https://projects.blender.org/blender/blender/pulls/146010
2025-09-12 11:04:17 +02:00
..