Blender  V3.3
bmo_split_edges.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
9 #include "BLI_utildefines.h"
10 
11 #include "bmesh.h"
12 #include "bmesh_tools.h"
13 
14 #include "intern/bmesh_operators_private.h" /* own include */
15 
17 {
18  const bool use_verts = BMO_slot_bool_get(op->slots_in, "use_verts");
19 
22 
23  if (use_verts) {
24  /* this slows down the operation but its ok because the modifier doesn't use */
26  }
27 
28  /* this is where everything happens */
29  BM_mesh_edgesplit(bm, use_verts, true, false);
30 
32 }
@ BM_VERT
Definition: bmesh_class.h:383
@ BM_EDGE
Definition: bmesh_class.h:384
@ BM_ELEM_TAG
Definition: bmesh_class.h:484
void BM_mesh_edgesplit(BMesh *bm, const bool use_verts, const bool tag_only, const bool copy_select)
ATTR_WARN_UNUSED_RESULT BMesh * bm
void BM_mesh_elem_hflag_disable_all(BMesh *bm, const char htype, const char hflag, const bool respecthide)
void BMO_slot_buffer_hflag_enable(BMesh *bm, BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name, char htype, char hflag, bool do_flush)
BMO_FLAG_BUFFER.
void BMO_slot_buffer_from_enabled_hflag(BMesh *bm, BMOperator *op, BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name, char htype, char hflag)
bool BMO_slot_bool_get(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name)
void bmo_split_edges_exec(BMesh *bm, BMOperator *op)
struct BMOpSlot slots_out[BMO_OP_MAX_SLOTS]
struct BMOpSlot slots_in[BMO_OP_MAX_SLOTS]