Image: [skip ci] move the import of Draft trackers inside scaling function. This gives a more useful error message in case of a failure to load it

This commit is contained in:
wmayer
2020-11-14 12:08:03 +01:00
parent 610f3ebf75
commit 384b085b68

View File

@@ -36,7 +36,6 @@ if FreeCAD.GuiUp:
import pivy.coin as pvy
import FreeCADGui
import draftguitools.gui_trackers as trackers
# Translation-related code
# See forum thread "A new Part tool is being born... JoinFeatures!"
@@ -65,6 +64,7 @@ class _CommandImageScaling:
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Image_Scaling", "Scales an image plane by defining a distance between two points")}
def Activated(self):
import draftguitools.gui_trackers as trackers
cmdCreateImageScaling(name="ImageScaling")
def IsActive(self):