From 7daac0fc3bf3a1f5a4b5c4191d8d1ed08cbb65d0 Mon Sep 17 00:00:00 2001 From: Christian Mesh Date: Fri, 5 May 2023 14:28:31 -0400 Subject: [PATCH] Fix #9485: PathInspector broken by #8459 --- src/Mod/Path/Path/Main/Gui/Inspect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/Path/Main/Gui/Inspect.py b/src/Mod/Path/Path/Main/Gui/Inspect.py index fe4967ba03..5074c7807a 100644 --- a/src/Mod/Path/Path/Main/Gui/Inspect.py +++ b/src/Mod/Path/Path/Main/Gui/Inspect.py @@ -28,6 +28,7 @@ import FreeCAD import FreeCADGui import Path from PySide.QtCore import QT_TRANSLATE_NOOP +import PathScripts.PathUtils as PathUtils translate = FreeCAD.Qt.translate @@ -96,7 +97,7 @@ class GCodeEditorDialog(QtGui.QDialog): tool = None def __init__(self, PathObj, parent=FreeCADGui.getMainWindow()): - self.PathObj = PathObj.Path + self.PathObj = PathObj if hasattr(PathObj, "ToolController"): self.tool = PathObj.ToolController.Tool else: