- fixed issue in Tool Calculators when a float value was entered starting only with the dot.
- added protection for entering incorrect values in Offset and Scale fields for Gerber and Geometry objects (in Selected Tab)
This commit is contained in:
@@ -157,7 +157,7 @@ class ToolCalculator(FlatCAMTool):
|
||||
tip_diameter = float(self.tipDia_entry.get_value())
|
||||
half_tip_angle = float(self.tipAngle_entry.get_value()) / 2
|
||||
cut_depth = float(self.cutDepth_entry.get_value())
|
||||
except TypeError:
|
||||
except:
|
||||
return
|
||||
|
||||
tool_diameter = tip_diameter + (2 * cut_depth * math.tan(math.radians(half_tip_angle)))
|
||||
|
||||
Reference in New Issue
Block a user