diff --git a/scripts/addons/cam/ops.py b/scripts/addons/cam/ops.py index 2a07bc169..4cc9108fd 100644 --- a/scripts/addons/cam/ops.py +++ b/scripts/addons/cam/ops.py @@ -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'}