Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_warp.c
| Context not available. | |||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static int object_warp_verts_poll(bContext *C) | |||||
| { | |||||
| Object *obedit = CTX_data_edit_object(C); | |||||
| if (obedit) { | |||||
| if (ED_transverts_check_obedit(obedit)) { | |||||
| return true; | |||||
| } | |||||
| } | |||||
| return false; | |||||
| } | |||||
| void OBJECT_OT_vertex_warp(struct wmOperatorType *ot) | void OBJECT_OT_vertex_warp(struct wmOperatorType *ot) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| Context not available. | |||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = object_warp_verts_exec; | ot->exec = object_warp_verts_exec; | ||||
| ot->poll = object_warp_verts_poll; | ot->poll = ED_transverts_obedit_poll; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| Context not available. | |||||