From 4d5ad23ccef03dce326c9ce0949241ed5282dc83 Mon Sep 17 00:00:00 2001 From: tarman3 Date: Mon, 29 Sep 2025 19:09:15 +0300 Subject: [PATCH] CAM: LeadInOut - Fix ZeroDivisionError for LineZ --- src/Mod/CAM/Path/Dressup/Gui/LeadInOut.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/CAM/Path/Dressup/Gui/LeadInOut.py b/src/Mod/CAM/Path/Dressup/Gui/LeadInOut.py index 6acea39bfd..5a2ff44779 100644 --- a/src/Mod/CAM/Path/Dressup/Gui/LeadInOut.py +++ b/src/Mod/CAM/Path/Dressup/Gui/LeadInOut.py @@ -194,8 +194,9 @@ class ObjectDressup: if obj.PercentageRadiusOut < 1: obj.PercentageRadiusOut = 1 - limit_angle_in = 1 if "Arc" in obj.StyleIn or "Helix" == obj.StyleIn else 0 - limit_angle_out = 1 if "Arc" in obj.StyleOut or "Helix" == obj.StyleOut else 0 + nonZeroAngleStyles = ("Arc", "Arc3d", "ArcZ", "Helix", "LineZ") + limit_angle_in = 1 if obj.StyleIn in nonZeroAngleStyles else 0 + limit_angle_out = 1 if obj.StyleOut in nonZeroAngleStyles else 0 if obj.AngleIn > 180: obj.AngleIn = 180 if obj.AngleIn < limit_angle_in: