Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/operators/bmo_bisect_plane.c
| Context not available. | |||||
| #define ELE_NEW 1 | #define ELE_NEW 1 | ||||
| #define ELE_INPUT 2 | #define ELE_INPUT 2 | ||||
| /* XXX used with fracture modifier, check whether still necessary */ | |||||
| #define MYTAG (1 << 6) | |||||
| void bmo_bisect_plane_exec(BMesh *bm, BMOperator *op) | void bmo_bisect_plane_exec(BMesh *bm, BMOperator *op) | ||||
| { | { | ||||
| Context not available. | |||||
| BMO_slot_buffer_flag_enable(bm, op->slots_in, "geom", BM_ALL_NOLOOP, ELE_INPUT); | BMO_slot_buffer_flag_enable(bm, op->slots_in, "geom", BM_ALL_NOLOOP, ELE_INPUT); | ||||
| BM_mesh_bisect_plane(bm, plane, use_snap_center, true, | BM_mesh_bisect_plane(bm, plane, use_snap_center, true, | ||||
| ELE_NEW, dist); | ELE_NEW, dist); | ||||
| Context not available. | |||||
| } | } | ||||
| BMO_slot_buffer_from_enabled_flag(bm, op, op->slots_out, "geom.out", BM_ALL_NOLOOP, ELE_NEW | ELE_INPUT); | BMO_slot_buffer_from_enabled_flag(bm, op, op->slots_out, "geom.out", BM_ALL_NOLOOP, ELE_NEW | ELE_INPUT); | ||||
| BMO_slot_buffer_from_enabled_flag(bm, op, op->slots_out, "geom_cut.out", BM_VERT | BM_EDGE, ELE_NEW); | /* XXX added BM_FACE here for usage with fracture modifier, might be removed again if working without...*/ | ||||
| BMO_slot_buffer_from_enabled_flag(bm, op, op->slots_out, "geom_cut.out", BM_VERT | BM_EDGE | BM_FACE, ELE_NEW); | |||||
| } | } | ||||
| Context not available. | |||||