void LATTICE_OT_select_random(wmOperatorType *ot) { /* identifiers */ ot->name = "Select Random"; ot->description = "Randomly select UVW control points"; ot->idname = "LATTICE_OT_select_random"; /* api callbacks */ ot->exec = lattice_select_random_exec; ot->poll = ED_operator_editlattice; /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; /* props */ WM_operator_properties_select_random(ot); }
void MBALL_OT_select_random_metaelems(struct wmOperatorType *ot) { /* identifiers */ ot->name = "Select Random"; ot->description = "Randomly select metaelements"; ot->idname = "MBALL_OT_select_random_metaelems"; /* callback functions */ ot->exec = select_random_metaelems_exec; ot->poll = ED_operator_editmball; /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; /* properties */ WM_operator_properties_select_random(ot); }
void CURVE_OT_select_random(wmOperatorType *ot) { /* identifiers */ ot->name = "Select Random"; ot->idname = "CURVE_OT_select_random"; ot->description = "Randomly select some control points"; /* api callbacks */ ot->exec = curve_select_random_exec; ot->poll = ED_operator_editsurfcurve; /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; /* properties */ WM_operator_properties_select_random(ot); }