Fix: Outliner: Grease Pencil layer visibility icons are grayed out
Current code is setting UI_BUT_INACTIVE when the parent group is visible, rather than when invisible. This PR reverses that mistake. Pull Request: https://projects.blender.org/blender/blender/pulls/137641
This commit is contained in:
committed by
Harley Acheson
parent
f19f260ca8
commit
603ea8ca89
@@ -1548,7 +1548,7 @@ static void outliner_draw_restrictbuts(uiBlock *block,
|
||||
0,
|
||||
std::nullopt);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
if (node.parent_group() && node.parent_group()->is_visible()) {
|
||||
if (node.parent_group() && !node.parent_group()->is_visible()) {
|
||||
UI_but_flag_enable(bt, UI_BUT_INACTIVE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user