UI: Use Collection icon for New Collection in Outliner
Also temporarily bring back the toggle to search, since it's off by default.
This commit is contained in:
parent
f3bd5da7fc
commit
ed428b2c04
Notes:
blender-bot
2023-02-14 05:42:00 +01:00
Referenced by issue #55575, 2.8 crashes when loading some projects.
|
@ -38,11 +38,15 @@ class OUTLINER_HT_header(Header):
|
|||
layout.prop(space, "display_mode", icon_only=True)
|
||||
|
||||
if display_mode in {'VIEW_LAYER'}:
|
||||
layout.operator("outliner.collection_new", text="", icon="ZOOMIN").nested = True
|
||||
layout.operator("outliner.collection_new", text="", icon="GROUP").nested = True
|
||||
|
||||
layout.separator_spacer()
|
||||
|
||||
layout.prop(space, "filter_text", icon="VIEWZOOM", text="")
|
||||
row = layout.row(align=True)
|
||||
row.prop(space, "use_filter_search", text="")
|
||||
sub = row.row(align=True)
|
||||
sub.prop(space, "filter_text", text="")
|
||||
sub.enabled = space.use_filter_search
|
||||
|
||||
layout.separator_spacer()
|
||||
|
||||
|
|
Loading…
Reference in New Issue