From fa76f08db5c56e05bd4f1ad4d0f2337f8f3a95fd Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Sun, 6 Oct 2019 10:23:00 +0200 Subject: 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 --- source/blender/bmesh/operators/bmo_primitive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/bmesh') 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); } -- cgit v1.2.3