Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/curve/editcurve.c
| Show First 20 Lines • Show All 5,376 Lines • ▼ Show 20 Lines | static int toggle_cyclic_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) | ||||
| uiPopupMenu *pup; | uiPopupMenu *pup; | ||||
| uiLayout *layout; | uiLayout *layout; | ||||
| Nurb *nu; | Nurb *nu; | ||||
| if (obedit->type == OB_SURF) { | if (obedit->type == OB_SURF) { | ||||
| for (nu = editnurb->first; nu; nu = nu->next) { | for (nu = editnurb->first; nu; nu = nu->next) { | ||||
| if (nu->pntsu > 1 || nu->pntsv > 1) { | if (nu->pntsu > 1 || nu->pntsv > 1) { | ||||
| if (nu->type == CU_NURBS) { | if (nu->type == CU_NURBS) { | ||||
| pup = uiPupMenuBegin(C, IFACE_("Direction"), ICON_NONE); | pup = UI_popup_menu_begin(C, IFACE_("Direction"), ICON_NONE); | ||||
| layout = uiPupMenuLayout(pup); | layout = UI_popup_menu_layout(pup); | ||||
| uiItemsEnumO(layout, op->type->idname, "direction"); | uiItemsEnumO(layout, op->type->idname, "direction"); | ||||
| uiPupMenuEnd(C, pup); | UI_popup_menu_end(C, pup); | ||||
| return OPERATOR_INTERFACE; | return OPERATOR_INTERFACE; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| return toggle_cyclic_exec(C, op); | return toggle_cyclic_exec(C, op); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,658 Lines • Show Last 20 Lines | |||||