From 65a2fce678155fda5b8e4680685470b6a3fd1217 Mon Sep 17 00:00:00 2001 From: Dimitris75 Date: Sun, 17 Aug 2025 04:39:56 +0300 Subject: [PATCH] Correct problems found by Github bot Delete unused lists --- src/Mod/CAM/Path/Op/Waterline.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Mod/CAM/Path/Op/Waterline.py b/src/Mod/CAM/Path/Op/Waterline.py index ed1726890e..9fe0437453 100644 --- a/src/Mod/CAM/Path/Op/Waterline.py +++ b/src/Mod/CAM/Path/Op/Waterline.py @@ -558,7 +558,7 @@ class ObjectWaterline(PathOp.ObjectOp): expMode = 2 elif obj.Algorithm == "Experimental": A = B = C = 0 - expMode = G = D = H = show = hide = 2 + expMode = G = D = show = hide = 2 cutPattern = obj.CutPattern if obj.ClearLastLayer != "Off": @@ -1322,7 +1322,6 @@ class ObjectWaterline(PathOp.ObjectOp): # Scan the piece to depth at smplInt oclScan = [] - zheights = [] scanLines = [] if obj.Algorithm == "OCL Adaptive": # Check Stock's bounding box and Tool Path limits @@ -1402,8 +1401,7 @@ class ObjectWaterline(PathOp.ObjectOp): return pdc.getCLPoints() def _waterlineAdaptiveScan(self, stl, smplInt, minSmplInt, zheights, depOfst): - """Perform OCL Adaptive scan for waterline purpose.""" - aloops = [] + """Perform OCL Adaptive scan for waterline purpose.""" msg = translate("Waterline", ": Steps below the model's top Face will be the only ones processed.") Path.Log.info("Waterline " + msg) @@ -1417,7 +1415,6 @@ class ObjectWaterline(PathOp.ObjectOp): # Create Adaptive loops adapt_loops = [] acnt = 0 - skippedZ = [] for zh in zheights: #zh = round(zh, 3) temp_loops = []