Skip to content

Commit

Permalink
interlock on calculate path maxz > freemovement
Browse files Browse the repository at this point in the history
  • Loading branch information
brldev committed Oct 30, 2023
1 parent beefe5f commit 8c9da47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/addons/cam/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ def execute(self, context):
self.report({'ERROR_INVALID_INPUT'}, "Operation can't be performed, see warnings for info")
print("Operation can't be performed, see warnings for info")
return {'CANCELLED'}

#check for free movement height < maxz and return with error
if(o.movement.free_height < o.maxz):
self.report({'ERROR_INVALID_INPUT'}, "Free movement height is less than maximum Z height, correct and try again.")
return {'CANCELLED'}

if o.computing:
return {'FINISHED'}
Expand Down

0 comments on commit 8c9da47

Please sign in to comment.