Draft: do not show Draft Tray toolbar when importing only the Draft module
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user