[Bf-blender-cvs] [fa76f08db5c] blender-v2.81-release: Fix T70560: Large cones are created with double vertices (even though the radius is zero)

Philipp Oeser noreply at git.blender.org
Tue Oct 15 09:52:19 CEST 2019


Commit: fa76f08db5c56e05bd4f1ad4d0f2337f8f3a95fd
Author: Philipp Oeser
Date:   Sun Oct 6 10:23:00 2019 +0200
Branches: blender-v2.81-release
https://developer.blender.org/rBfa76f08db5c56e05bd4f1ad4d0f2337f8f3a95fd

Fix T70560: Large cones are created with double vertices (even though
the radius is zero)

Merge threshold for remove_doubles was hardcoded, now scaled by depth.

Reviewed By: campbellbarton

Maniphest Tasks: T70560

Differential Revision: https://developer.blender.org/D6001

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

M	source/blender/bmesh/operators/bmo_primitive.c

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

diff --git a/source/blender/bmesh/operators/bmo_primitive.c b/source/blender/bmesh/operators/bmo_primitive.c
index ff7dcc388b3..64687ac154c 100644
--- a/source/blender/bmesh/operators/bmo_primitive.c
+++ b/source/blender/bmesh/operators/bmo_primitive.c
@@ -1507,7 +1507,7 @@ void bmo_create_cone_exec(BMesh *bm, BMOperator *op)
     BMO_op_callf(bm, op->flag, "dissolve_faces faces=%ff", FACE_NEW);
   }
 
-  BMO_op_callf(bm, op->flag, "remove_doubles verts=%fv dist=%f", VERT_MARK, 0.000001);
+  BMO_op_callf(bm, op->flag, "remove_doubles verts=%fv dist=%f", VERT_MARK, 0.0000005 * depth);
   BMO_slot_buffer_from_enabled_flag(bm, op, op->slots_out, "verts.out", BM_VERT, VERT_MARK);
 }



More information about the Bf-blender-cvs mailing list