From 384b085b6849457cd58d51532f0e8abeb8607632 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 14 Nov 2020 12:08:03 +0100 Subject: [PATCH] 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 --- src/Mod/Image/ImageTools/_CommandImageScaling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Image/ImageTools/_CommandImageScaling.py b/src/Mod/Image/ImageTools/_CommandImageScaling.py index 0f793a2692..047119a7f2 100644 --- a/src/Mod/Image/ImageTools/_CommandImageScaling.py +++ b/src/Mod/Image/ImageTools/_CommandImageScaling.py @@ -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):