[Bf-blender-cvs] [b30687b2cae] temp-lineart-contained: LineArt: Proper Use of BMesh operator to remove doubles.

YimingWu noreply at git.blender.org
Mon Dec 21 08:43:38 CET 2020


Commit: b30687b2cae3ced060d832228e6700329d8b8c34
Author: YimingWu
Date:   Mon Dec 21 15:40:12 2020 +0800
Branches: temp-lineart-contained
https://developer.blender.org/rBb30687b2cae3ced060d832228e6700329d8b8c34

LineArt: Proper Use of BMesh operator to remove doubles.

===================================================================

M	source/blender/editors/lineart/lineart_cpu.c

===================================================================

diff --git a/source/blender/editors/lineart/lineart_cpu.c b/source/blender/editors/lineart/lineart_cpu.c
index b84bac0e530..dc833f2914e 100644
--- a/source/blender/editors/lineart/lineart_cpu.c
+++ b/source/blender/editors/lineart/lineart_cpu.c
@@ -1498,12 +1498,9 @@ static void lineart_geometry_object_load(Depsgraph *dg,
     if (rb->remove_doubles) {
       BMEditMesh *em = BKE_editmesh_create(bm, false);
       BMOperator findop, weldop;
-      BMO_op_initf(bm,
-                   &findop,
-                   BMO_FLAG_DEFAULTS,
-                   "find_doubles verts=%av keep_verts=%Hv dist=%f",
-                   BM_ELEM_SELECT,
-                   0.0001);
+
+      /* See bmesh_opdefines.c and bmesh_operators.c for op names and argument formatting. */
+      BMO_op_initf(bm, &findop, BMO_FLAG_DEFAULTS, "find_doubles verts=%av dist=%f", 0.0001);
 
       BMO_op_exec(bm, &findop);



More information about the Bf-blender-cvs mailing list