Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-10-06 11:23:00 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-10-15 10:46:59 +0300
commitfa76f08db5c56e05bd4f1ad4d0f2337f8f3a95fd (patch)
tree809634b6b3f610eb3b0ea6e5c54ec3bf19b0d8d3 /source/blender/bmesh
parent7fb12536b7ca732e61c942b5561a064e525a6725 (diff)
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
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/operators/bmo_primitive.c2
1 files changed, 1 insertions, 1 deletions
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);
}