bmesh: lazy initialize bmesh tool flag pool, has the advantage that modifiers that dont use bmesh operators can skip allocating it.
This commit is contained in:
@@ -181,7 +181,7 @@ static BMFace *copy_face(BMOperator *op, BMesh *source_mesh,
|
||||
* Internal Copy function.
|
||||
*/
|
||||
|
||||
static void BKE_mesh_copy(BMOperator *op, BMesh *source, BMesh *target)
|
||||
static void bmo_mesh_copy(BMOperator *op, BMesh *source, BMesh *target)
|
||||
{
|
||||
|
||||
BMVert *v = NULL, *v2;
|
||||
@@ -326,7 +326,7 @@ void bmo_duplicate_exec(BMesh *bm, BMOperator *op)
|
||||
BMO_slot_buffer_flag_enable(bm, dupeop, "geom", BM_ALL, DUPE_INPUT);
|
||||
|
||||
/* use the internal copy function */
|
||||
BKE_mesh_copy(dupeop, bm, bm2);
|
||||
bmo_mesh_copy(dupeop, bm, bm2);
|
||||
|
||||
/* Output */
|
||||
/* First copy the input buffers to output buffers - original data */
|
||||
|
||||
Reference in New Issue
Block a user