Path: Implement LazyLoader for Arcs module

This commit is contained in:
Russell Johnson
2020-11-22 18:20:48 -06:00
parent da3f052270
commit 1468c7e842

View File

@@ -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))