Commit b98bfab4 authored by sumpfralle's avatar sumpfralle

issue a warning if no collision model was selected


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1231 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent ba000347
...@@ -68,6 +68,10 @@ class TaskTypeMilling(pycam.Plugins.PluginBase): ...@@ -68,6 +68,10 @@ class TaskTypeMilling(pycam.Plugins.PluginBase):
# we assume that an error message was given already # we assume that an error message was given already
return return
models = [m.model for m in task["parameters"]["collision_models"]] models = [m.model for m in task["parameters"]["collision_models"]]
if not models:
# issue a warning - and go ahead ...
self.log.warn("No collision model was selected. This can be " + \
"intentional, but maybe you simply forgot it.")
moves = path_generator.GenerateToolPath(tool, models, motion_grid, moves = path_generator.GenerateToolPath(tool, models, motion_grid,
minz=low[2], maxz=high[2], draw_callback=callback) minz=low[2], maxz=high[2], draw_callback=callback)
if not moves: if not moves:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment