Skip to content

Commit

Permalink
Convert usage of PathStop to Path.Op.Gui.Stop
Browse files Browse the repository at this point in the history
  • Loading branch information
mlampert committed Sep 16, 2022
1 parent 666bcd7 commit b759d47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Path/Path/Main/Gui/Sanity.py
Expand Up @@ -819,7 +819,7 @@ def __outputData(self, obj):
fname = obj.PostProcessorOutputFile
data["outputfilename"] = os.path.splitext(os.path.basename(fname))[0]
for op in obj.Operations.Group:
if isinstance(op.Proxy, PathScripts.PathStop.Stop) and op.Stop is True:
if isinstance(op.Proxy, Path.Op.Gui.Stop.Stop) and op.Stop is True:
data["optionalstops"] = "True"

if obj.LastPostProcessOutput == "":
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Path/Path/Op/Gui/Stop.py
Expand Up @@ -124,16 +124,16 @@ def Activated(self):
FreeCAD.ActiveDocument.openTransaction(
"Add Optional or Mandatory Stop to the program"
)
FreeCADGui.addModule("PathScripts.PathStop")
FreeCADGui.addModule("Path.Op.Gui.Stop")
snippet = """
import Path
import PathScripts
from PathScripts import PathUtils
prjexists = False
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython","Stop")
PathScripts.PathStop.Stop(obj)
Path.Op.Gui.Stop.Stop(obj)
PathScripts.PathStop._ViewProviderStop(obj.ViewObject)
Path.Op.Gui.Stop._ViewProviderStop(obj.ViewObject)
PathUtils.addToJob(obj)
"""
FreeCADGui.doCommand(snippet)
Expand Down

0 comments on commit b759d47

Please sign in to comment.