diff --git a/src/Mod/Draft/draftguitools/gui_base_original.py b/src/Mod/Draft/draftguitools/gui_base_original.py index fd3119109c..f7a2b1e854 100644 --- a/src/Mod/Draft/draftguitools/gui_base_original.py +++ b/src/Mod/Draft/draftguitools/gui_base_original.py @@ -133,7 +133,7 @@ class DraftTool: if utils.get_param("showPlaneTracker", False): self.planetrack = trackers.PlaneTracker() if hasattr(Gui, "Snapper"): - Gui.Snapper.setTrackers(tool=True) + Gui.Snapper.setTrackers() _msg("{}".format(16*"-")) _msg("GuiCommand: {}".format(self.featureName)) diff --git a/src/Mod/Draft/draftguitools/gui_snapper.py b/src/Mod/Draft/draftguitools/gui_snapper.py index 847b865e99..7977582e5e 100644 --- a/src/Mod/Draft/draftguitools/gui_snapper.py +++ b/src/Mod/Draft/draftguitools/gui_snapper.py @@ -53,7 +53,6 @@ import draftguitools.gui_trackers as trackers from draftutils.init_tools import get_draft_snap_commands from draftutils.messages import _wrn from draftutils.translate import translate -from draftutils.todo import ToDo __title__ = "FreeCAD Draft Snap tools" __author__ = "Yorik van Havre" @@ -1607,14 +1606,14 @@ class Snapper: self.show_hide_grids(show=False) - def setGrid(self, tool=False): + def setGrid(self): """Set the grid, if visible.""" self.setTrackers() if self.grid.Visible: - self.grid.set(tool) + self.grid.set() - def setTrackers(self, tool=False, update_grid=True): + def setTrackers(self, update_grid=True): """Set the trackers.""" v = Draft.get3DView() if v and (v != self.activeview): diff --git a/src/Mod/Draft/draftguitools/gui_trackers.py b/src/Mod/Draft/draftguitools/gui_trackers.py index 312aaa5625..c567392b75 100644 --- a/src/Mod/Draft/draftguitools/gui_trackers.py +++ b/src/Mod/Draft/draftguitools/gui_trackers.py @@ -1237,7 +1237,7 @@ class gridTracker(Tracker): self.numlines = Draft.getParam("gridSize", 100) self.update() - def set(self,tool=False): + def set(self): """Move and rotate the grid according to the current working plane.""" self.reset() wp = self._get_wp()