diff options
author | Hans Goudey <h.goudey@me.com> | 2020-11-17 18:07:38 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-11-17 18:08:39 +0300 |
commit | cc0b8cb3599f50012bd90a0c41462290007f3328 (patch) | |
tree | 0da094ac3a56c3f16d436117812a364db2276229 /source/blender/editors/interface | |
parent | 0724fabcf52ad9b97649969ab3c830b9fd5ac9ea (diff) |
Fix T82341: Warning in terminal during property search
After recent changes to the context panel layout (rB187cc5e26d28b1a8),
there has been an error printed when running propery search:
> Error: separator_spacer() not supported in popups.
The layout code thinks it's drawing in a menu because region->visible
isn't properly set for the other tab searches. This patch sets that field
for the temporary searching region, but it also disables searching in the
context breadcrumbs panel, because at best this will just give results
for the names of the active object, etc. This isn't helpful since
those labels are mostly in every tab anyway.
Differential Revision: https://developer.blender.org/D9425
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index ad260274e78..03a017b5d4a 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -5167,6 +5167,10 @@ bool UI_block_apply_search_filter(uiBlock *block, const char *search_filter) return false; } + if (block->panel && block->panel->type && block->panel->type->flag & PNL_NO_SEARCH) { + return false; + } + const bool panel_label_matches = block_search_panel_label_matches(block, search_filter); const bool has_result = (panel_label_matches) ? |