LightEditor : Fix missing icons for groups #5932
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes a regression introduced in
1.4.8.0
when we added light blockers and filters to the Light Editor. In 85d93d3, I hid the mute / solo icon for anything except lights, including groups. But we can mute and solo groups, so we should see the icon for that.Additionally, the behavior for toggling was different. We allowed toggling a group's mute / solo status if it was an ancestor of at least one light. This meant you could toggle a group if it had a child light, but not see a visual indication that anything had changed.
There are two options for matching up the behavior to the UI and also showing mute / solo icons on groups :
I went with option 1 in this PR, on the reasoning that it's simpler for the user to understand. It does mean that you can toggle a group containing only light filters / blockers, which may be somewhat counter-intuitive. But groups containing light filters and those containing lights are not different in function or concept, so this seems like a reasonable choice to me.
Happy to discuss further, especially as it may relate to the Light Editor + Pass Editor unification @murraystevenson is working on.
Checklist