Draft: Small fix to work without GUI

This commit is contained in:
Yorik van Havre
2012-11-23 18:36:43 -02:00
parent d662731f3f
commit c9164bb9d0

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