Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface.c
| Show First 20 Lines • Show All 6,667 Lines • ▼ Show 20 Lines | void UI_but_func_search_set_all_strings_valid(uiBut *but, const bool value) | ||||
| but_search->all_strings_valid = value; | but_search->all_strings_valid = value; | ||||
| } | } | ||||
| /* Callbacks for operator search button. */ | /* Callbacks for operator search button. */ | ||||
| static void operator_enum_search_update_fn(const struct bContext *C, | static void operator_enum_search_update_fn(const struct bContext *C, | ||||
| void *but, | void *but, | ||||
| const char *str, | const char *str, | ||||
| uiSearchItems *items) | uiSearchItems *items, | ||||
| const bool UNUSED(is_first)) | |||||
| { | { | ||||
| wmOperatorType *ot = ((uiBut *)but)->optype; | wmOperatorType *ot = ((uiBut *)but)->optype; | ||||
| PropertyRNA *prop = ot->prop; | PropertyRNA *prop = ot->prop; | ||||
| if (prop == NULL) { | if (prop == NULL) { | ||||
| printf("%s: %s has no enum property set\n", __func__, ot->idname); | printf("%s: %s has no enum property set\n", __func__, ot->idname); | ||||
| } | } | ||||
| else if (RNA_property_type(prop) != PROP_ENUM) { | else if (RNA_property_type(prop) != PROP_ENUM) { | ||||
| ▲ Show 20 Lines • Show All 416 Lines • Show Last 20 Lines | |||||