From 64f1d47da1bb44c5723c4d787618293e13a0222a Mon Sep 17 00:00:00 2001 From: abosafia Date: Wed, 28 Aug 2024 22:50:46 +0300 Subject: [PATCH] small fix --- scripts/addons/cam/strategy.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/addons/cam/strategy.py b/scripts/addons/cam/strategy.py index 87c1ec7a..88ef7bbd 100644 --- a/scripts/addons/cam/strategy.py +++ b/scripts/addons/cam/strategy.py @@ -351,6 +351,10 @@ async def pocket(o): c_offset += o.skin # add skin print("Cutter Offset", c_offset) + if o.onlycurves: # remove doubles for curves :) + for ob in o.objects: + activate(ob) + bpy.ops.object.curve_remove_doubles(merg_distance=0.0001, keep_bezier=True) p = getObjectOutline(c_offset, o, False) approxn = (min(o.max.x - o.min.x, o.max.y - o.min.y) / o.dist_between_paths) / 2 @@ -365,11 +369,6 @@ async def pocket(o): firstoutline = p # for testing in the end. prest = p.buffer(-c_offset, o.optimisation.circle_detail) - if o.onlycurves: # remove doubles for curves :) - for ob in o.objects: - activate(ob) - bpy.ops.object.curve_remove_doubles(merg_distance=0.0001, keep_bezier=True) - while not p.is_empty: if o.pocketToCurve: # make a curve starting with _3dpocket