Draft: Small fix to work without GUI
This commit is contained in:
@@ -3079,6 +3079,6 @@ class _ViewProviderClone(_ViewProviderDraftAlt):
|
||||
def getIcon(self):
|
||||
return ":/icons/Draft_Clone.svg"
|
||||
|
||||
|
||||
if not hasattr(FreeCADGui,"Snapper"):
|
||||
import DraftSnap
|
||||
if gui:
|
||||
if not hasattr(FreeCADGui,"Snapper"):
|
||||
import DraftSnap
|
||||
|
||||
Reference in New Issue
Block a user