Skip to content

Commit

Permalink
Path: if TC is none, partials wouldn't post
Browse files Browse the repository at this point in the history
added H parameter to linuxcnc post for tool length offset
  • Loading branch information
sliptonic authored and wwmayer committed Jun 28, 2017
1 parent 266fb0b commit 3254aca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Mod/Path/PathScripts/PathPost.py
Expand Up @@ -250,8 +250,9 @@ def Activated(self):
PathLog.debug("obj: {}".format(obj.Name))
if not isinstance(obj.Proxy, PathToolController.ToolController):
tc = PathUtil.toolControllerForOp(obj)
if tc.ToolNumber != currTool:
postlist.append(tc)
if tc is not None:
if tc.ToolNumber != currTool:
postlist.append(tc)
postlist.append(obj)

fail = True
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/post/linuxcnc_post.py
Expand Up @@ -225,7 +225,7 @@ def parse(pathobj):
# params = ['X','Y','Z','A','B','I','J','K','F','S'] #This list control
# the order of parameters
# linuxcnc doesn't want K properties on XY plane Arcs need work.
params = ['X', 'Y', 'Z', 'A', 'B', 'I', 'J', 'F', 'S', 'T', 'Q', 'R', 'L']
params = ['X', 'Y', 'Z', 'A', 'B', 'I', 'J', 'F', 'S', 'T', 'Q', 'R', 'L', 'H']

if hasattr(pathobj, "Group"): # We have a compound or project.
# if OUTPUT_COMMENTS:
Expand Down

0 comments on commit 3254aca

Please sign in to comment.