Page MenuHome

Property Search: Fix warning
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Nov 2 2020, 11:40 PM.

Details

Summary

After recent changes to the context panel layout (rB187cc5e26d28b1a8),
there has been an error printed in the terminal 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 wasn't helpful since
those labels are mostly in every tab anyway.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Nov 2 2020, 11:40 PM
Hans Goudey (HooglyBoogly) created this revision.

A nicer way to tell a panel to be ignored during search would be using a panel-type flag. We can add that later if useful though, this explicit check is acceptable. Just mention the panel-type flag idea in the comment please.

This revision is now accepted and ready to land.Nov 17 2020, 1:23 PM