Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_templates.c
| Show First 20 Lines • Show All 952 Lines • ▼ Show 20 Lines | static void template_ID(const bContext *C, | ||||
| uiBlock *block = uiLayoutGetBlock(layout); | uiBlock *block = uiLayoutGetBlock(layout); | ||||
| UI_block_align_begin(block); | UI_block_align_begin(block); | ||||
| if (idptr.type) { | if (idptr.type) { | ||||
| type = idptr.type; | type = idptr.type; | ||||
| } | } | ||||
| if (text) { | if (text && text != "") { | ||||
| /* Add label respecting the separated layout property split state. */ | /* Add label respecting the separated layout property split state. */ | ||||
| uiItemL_respect_property_split(layout, text, ICON_NONE); | uiItemL_respect_property_split(layout, text, ICON_NONE); | ||||
| } | } | ||||
| if (flag & UI_ID_BROWSE) { | if (flag & UI_ID_BROWSE) { | ||||
| template_add_button_search_menu(C, | template_add_button_search_menu(C, | ||||
| layout, | layout, | ||||
| block, | block, | ||||
| ▲ Show 20 Lines • Show All 6,386 Lines • Show Last 20 Lines | |||||