Fix #120278: Anim properties are not highlighted in tree view
Animation state of any property is not colored in tree-view structure. This is due to wrong emboss value. `widget_color_blend_from_flags` returns correct theme value if emboss is not `UI_EMBOSS_NONE`. `UI_EMBOSS_NONE_OR_STATUS` is preferred for animating properties. Pull Request: https://projects.blender.org/blender/blender/pulls/120298
This commit is contained in:
committed by
Julian Eisel
parent
619ab92c77
commit
129d5a1067
@@ -660,7 +660,7 @@ void TreeViewLayoutBuilder::build_row(AbstractTreeViewItem &item) const
|
||||
item.add_treerow_button(block_);
|
||||
|
||||
/* After adding tree-row button (would disable hover highlighting). */
|
||||
UI_block_emboss_set(&block_, UI_EMBOSS_NONE);
|
||||
UI_block_emboss_set(&block_, UI_EMBOSS_NONE_OR_STATUS);
|
||||
|
||||
row = uiLayoutRow(overlap, true);
|
||||
item.add_indent(*row);
|
||||
|
||||
Reference in New Issue
Block a user