Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/area.c
| Show First 20 Lines • Show All 3,074 Lines • ▼ Show 20 Lines | static bool panel_property_search(const bContext *C, | ||||
| const uiStyle *style, | const uiStyle *style, | ||||
| Panel *panel, | Panel *panel, | ||||
| PanelType *panel_type, | PanelType *panel_type, | ||||
| const char *search_filter) | const char *search_filter) | ||||
| { | { | ||||
| uiBlock *block = UI_block_begin(C, region, panel_type->idname, UI_EMBOSS); | uiBlock *block = UI_block_begin(C, region, panel_type->idname, UI_EMBOSS); | ||||
| UI_block_set_search_only(block, true); | UI_block_set_search_only(block, true); | ||||
| /* Skip panels that give meaningless search results. */ | |||||
| if (panel_type->flag & PNL_NO_SEARCH) { | |||||
| return false; | |||||
| } | |||||
| if (panel == NULL) { | if (panel == NULL) { | ||||
| bool open; /* Dummy variable. */ | bool open; /* Dummy variable. */ | ||||
| panel = UI_panel_begin(region, ®ion->panels, block, panel_type, panel, &open); | panel = UI_panel_begin(region, ®ion->panels, block, panel_type, panel, &open); | ||||
| } | } | ||||
| /* Build the layouts. Because they are only used for search, | /* Build the layouts. Because they are only used for search, | ||||
| * they don't need any of the proper style or layout information. */ | * they don't need any of the proper style or layout information. */ | ||||
| if (panel->type->draw_header_preset != NULL) { | if (panel->type->draw_header_preset != NULL) { | ||||
| ▲ Show 20 Lines • Show All 981 Lines • Show Last 20 Lines | |||||