Outliner: Hide search button for library overrides hierarchies view
c9a9967903
added a workaround for performance issues in heavy
production scenes in the library overrides hierarchies view, reducing
the amounts of elements to be built. Searching for elements would still
have to build the entire tree, so Blender would essentially freeze when
searching in mentioned heavy scenes. Removing the search functionality
works around this issue for now.
This commit is contained in:
parent
d481fb10ef
commit
21b92a5f31
Notes:
blender-bot
2023-07-07 13:24:04 +02:00
Referenced by issue #109808, No way to make a library override on a collection 'editable' from the outliner or properties
|
@ -30,8 +30,15 @@ class OUTLINER_HT_header(Header):
|
|||
|
||||
layout.separator_spacer()
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.prop(space, "filter_text", icon='VIEWZOOM', text="")
|
||||
filter_text_supported = True
|
||||
# No text filtering for library override hierarchies. The tree is lazy built to avoid
|
||||
# performance issues in complex files.
|
||||
if display_mode == 'LIBRARY_OVERRIDES' and space.lib_override_view_mode == 'HIERARCHIES':
|
||||
filter_text_supported = False
|
||||
|
||||
if filter_text_supported:
|
||||
row = layout.row(align=True)
|
||||
row.prop(space, "filter_text", icon='VIEWZOOM', text="")
|
||||
|
||||
layout.separator_spacer()
|
||||
|
||||
|
|
Loading…
Reference in New Issue