Merge pull request #9488 from cam72cam/fix_pathinspect_9485
Fix #9485: PathInspector broken by #8459
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user