- modified the grbl-laser postprocessor lift_code()

- treated an error created by Z_Cut parameter being None
- changed the hover and selection box transparency
This commit is contained in:
Marius Stanciu
2019-03-04 21:19:55 +02:00
parent d775e999fe
commit 996b63cf4e
4 changed files with 24 additions and 8 deletions

View File

@@ -5339,6 +5339,11 @@ class CNCjob(Geometry):
self.pp_geometry_name = pp_geometry_name if pp_geometry_name else 'default'
self.f_plunge = self.app.defaults["geometry_f_plunge"]
if self.z_cut is None:
self.app.inform.emit("[ERROR_NOTCL] Cut_Z parameter is None. Most likely a bad combinations of "
"other parameters.")
return 'fail'
if self.z_cut > 0:
self.app.inform.emit("[WARNING] The Cut Z parameter has positive value. "
"It is the depth value to cut into material.\n"
@@ -5588,6 +5593,11 @@ class CNCjob(Geometry):
self.pp_geometry_name = pp_geometry_name if pp_geometry_name else 'default'
self.f_plunge = self.app.defaults["geometry_f_plunge"]
if self.z_cut is None:
self.app.inform.emit("[ERROR_NOTCL] Cut_Z parameter is None. Most likely a bad combinations of "
"other parameters.")
return 'fail'
if self.z_cut > 0:
self.app.inform.emit("[WARNING] The Cut Z parameter has positive value. "
"It is the depth value to cut into material.\n"