Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_knife.c
| Show First 20 Lines • Show All 3,061 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * \param use_tag: When set, tag all faces inside the polylines. | * \param use_tag: When set, tag all faces inside the polylines. | ||||
| */ | */ | ||||
| void EDBM_mesh_knife(bContext *C, LinkNode *polys, bool use_tag, bool cut_through) | void EDBM_mesh_knife(bContext *C, LinkNode *polys, bool use_tag, bool cut_through) | ||||
| { | { | ||||
| KnifeTool_OpData *kcd; | KnifeTool_OpData *kcd; | ||||
| view3d_operator_needs_opengl(C); | |||||
| /* init */ | /* init */ | ||||
| { | { | ||||
| const bool only_select = false; | const bool only_select = false; | ||||
| const bool is_interactive = false; /* can enable for testing */ | const bool is_interactive = false; /* can enable for testing */ | ||||
| kcd = MEM_callocN(sizeof(KnifeTool_OpData), __func__); | kcd = MEM_callocN(sizeof(KnifeTool_OpData), __func__); | ||||
| knifetool_init(C, kcd, only_select, cut_through, is_interactive); | knifetool_init(C, kcd, only_select, cut_through, is_interactive); | ||||
| ▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines | |||||