Skip to content

Commit

Permalink
Merge pull request #45 from dubstar-04/debug
Browse files Browse the repository at this point in the history
check for legacy tools
  • Loading branch information
dubstar-04 authored Nov 7, 2022
2 parents 1f3c0b2 + ad40257 commit 15e0979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PathFeedsAndSpeedsGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ def load_tool_properties(self):
if tc:
tool = tc.Tool
dia = tool.Diameter
if isinstance(tool, Path.Tool):
# Hacky way to check for legacy tools, remove this after the release of 0.21
if not hasattr(tool, "BitShape"):
FreeCAD.Console.PrintError("Legacy Tools Not Supported: " + tool.Name + "\n")
self.set_tool_properties(dia)
return
flutes = tool.Flutes
material = tool.Material
chipload = tool.Chipload
self.set_tool_properties(dia, flutes, chipload, material)
print("tool props:", dia, flutes, material, chipload)

def get_tool_controller(self):
"""get the tool controller"""
Expand Down

0 comments on commit 15e0979

Please sign in to comment.