Image: [skip ci] pass trackers as argument to cmdCreateImageScaling

This commit is contained in:
wmayer
2020-11-21 09:51:54 +01:00
parent c465fbd799
commit 1e83085030

View File

@@ -65,7 +65,7 @@ class _CommandImageScaling:
def Activated(self):
import draftguitools.gui_trackers as trackers
cmdCreateImageScaling(name="ImageScaling")
cmdCreateImageScaling(name="ImageScaling", trackers=trackers)
def IsActive(self):
if FreeCAD.ActiveDocument:
@@ -78,7 +78,7 @@ if FreeCAD.GuiUp:
# helper
def cmdCreateImageScaling(name):
def cmdCreateImageScaling(name, trackers):
def distance(p1,p2):
dx=p2[0]-p1[0]