import DraftTools if Snapper isn't loaded yet (before using it)
This commit is contained in:
@@ -1265,6 +1265,8 @@ class CommandSetStartPoint:
|
||||
obj.StartPoint.z = obj.ClearanceHeight.Value
|
||||
|
||||
def Activated(self):
|
||||
if not hasattr(FreeCADGui, 'Snapper'):
|
||||
import DraftTools
|
||||
FreeCADGui.Snapper.getPoint(callback=self.setpoint)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user