Draft: do not show Draft Tray toolbar when importing only the Draft module

This commit is contained in:
Yorik van Havre 2015-02-22 21:29:34 -03:00
parent fac9d35efa
commit 2fdb1aeeff
2 changed files with 4 additions and 8 deletions

View File

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

View File

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