Draft: Small fix to work without GUI
This commit is contained in:
parent
a2a7f41433
commit
5522af1ef4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user