From c6d5bb8404b7a7d3d1b22b48f0cf599323e45203 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Sun, 22 Nov 2020 18:20:48 -0600 Subject: [PATCH] Path: Implement LazyLoader for Arcs module --- src/Mod/Path/PathScripts/PathSlot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathSlot.py b/src/Mod/Path/PathScripts/PathSlot.py index a0ce57afdb..d651522855 100644 --- a/src/Mod/Path/PathScripts/PathSlot.py +++ b/src/Mod/Path/PathScripts/PathSlot.py @@ -40,6 +40,7 @@ import math # lazily loaded modules from lazy_loader.lazy_loader import LazyLoader Part = LazyLoader('Part', globals(), 'Part') +Arcs = LazyLoader('draftgeoutils.arcs', globals(), 'draftgeoutils.arcs') if FreeCAD.GuiUp: import FreeCADGui @@ -1619,8 +1620,7 @@ class ObjectSlot(PathOp.ObjectOp): # Make wire with inside and outside arcs, and lines on ends. # Convert wire to face, then extrude - import draftgeoutils.arcs as Arcs - # Arc 1 - inside + # verify offset does not force radius < 0 newRadius = arcRadius - rad # PathLog.debug('arcRadius, newRadius: {}, {}'.format(arcRadius, newRadius))