diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 68cb51645..73962437e 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -5313,11 +5313,3 @@ class _ViewProviderVisGroup: if vobj.Object.InList[0].isDerivedFrom("Drawing::FeaturePage"): vobj.Object.InList[0].touch() - - - -#----End of Python Features Definitions----# - -if gui: - if not hasattr(FreeCADGui,"Snapper"): - import DraftSnap diff --git a/src/Mod/Draft/DraftGui.py b/src/Mod/Draft/DraftGui.py index 412c6f974..95349527d 100644 --- a/src/Mod/Draft/DraftGui.py +++ b/src/Mod/Draft/DraftGui.py @@ -1791,3 +1791,7 @@ class DraftToolBar: if not hasattr(FreeCADGui,"draftToolBar"): FreeCADGui.draftToolBar = DraftToolBar() +#----End of Python Features Definitions----# + +if not hasattr(FreeCADGui,"Snapper"): + import DraftSnap