From 5afe4c787f0ed3ac30f7609c7f07c5092a20eac9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 11 Mar 2017 20:39:28 +1100 Subject: BMesh: add BM_mesh_separate_faces Fast-path for bmesh split operator which duplicates and deletes. Use when only separating faces, currently used by the intersect tool. --- source/blender/bmesh/operators/bmo_dupe.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/bmesh/operators/bmo_dupe.c') diff --git a/source/blender/bmesh/operators/bmo_dupe.c b/source/blender/bmesh/operators/bmo_dupe.c index 56639a097b6..8048add84d4 100644 --- a/source/blender/bmesh/operators/bmo_dupe.c +++ b/source/blender/bmesh/operators/bmo_dupe.c @@ -378,6 +378,10 @@ void BMO_dupe_from_flag(BMesh *bm, int htype, const char hflag) * BMOP_DUPE_VOUTPUT: Buffer containing pointers to the split mesh vertices * BMOP_DUPE_EOUTPUT: Buffer containing pointers to the split mesh edges * BMOP_DUPE_FOUTPUT: Buffer containing pointers to the split mesh faces + * + * \note Lower level uses of this operator may want to use #BM_mesh_separate_faces + * Since it's faster for the 'use_only_faces' case. + * */ void bmo_split_exec(BMesh *bm, BMOperator *op) { -- cgit v1.2.3