Draft: Small fix to work without GUI

This commit is contained in:
Yorik van Havre 2012-11-23 18:36:43 -02:00
parent a2a7f41433
commit 5522af1ef4

View File

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