Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_context_menu.c
| Show First 20 Lines • Show All 955 Lines • ▼ Show 20 Lines | #endif | ||||
| } | } | ||||
| /* Pointer properties and string properties with | /* Pointer properties and string properties with | ||||
| * prop_search support jumping to target object/bone. */ | * prop_search support jumping to target object/bone. */ | ||||
| if (but->rnapoin.data && but->rnaprop) { | if (but->rnapoin.data && but->rnaprop) { | ||||
| const PropertyType prop_type = RNA_property_type(but->rnaprop); | const PropertyType prop_type = RNA_property_type(but->rnaprop); | ||||
| if (((prop_type == PROP_POINTER) || | if (((prop_type == PROP_POINTER) || | ||||
| (prop_type == PROP_STRING && but->type == UI_BTYPE_SEARCH_MENU && | (prop_type == PROP_STRING && but->type == UI_BTYPE_SEARCH_MENU && | ||||
| but->search->update_fn == ui_rna_collection_search_update_fn)) && | ((uiButSearch *)but)->items_update_fn == ui_rna_collection_search_update_fn)) && | ||||
| ui_jump_to_target_button_poll(C)) { | ui_jump_to_target_button_poll(C)) { | ||||
| uiItemO(layout, | uiItemO(layout, | ||||
| CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Jump to Target"), | CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Jump to Target"), | ||||
| ICON_NONE, | ICON_NONE, | ||||
| "UI_OT_jump_to_target_button"); | "UI_OT_jump_to_target_button"); | ||||
| uiItemS(layout); | uiItemS(layout); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 302 Lines • Show Last 20 Lines | |||||