ShapeString: offload importing Draft, for speedup
Doesn't seem to affect start-up time, though =(
This commit is contained in:
parent
5fae350e27
commit
517a27081d
|
@ -30,7 +30,6 @@ from lattice2BoundBox import getPrecisionBoundBox #needed for alignment
|
|||
|
||||
import FreeCAD as App
|
||||
import Part
|
||||
from Draft import _ShapeString
|
||||
|
||||
|
||||
__title__="BoundingBox module for FreeCAD"
|
||||
|
@ -134,6 +133,7 @@ class LatticeShapeString:
|
|||
if hasattr(self, "foolObj"):
|
||||
return
|
||||
foolObj = FoolFeatureDocumentObject()
|
||||
from Draft import _ShapeString
|
||||
self.draft_shape_string = _ShapeString(foolObj)
|
||||
self.foolObj = foolObj
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user