diff --git a/src/Mod/CAM/Path/Dressup/Gui/RampEntry.py b/src/Mod/CAM/Path/Dressup/Gui/RampEntry.py index 1ae362dd4c..84d808dab3 100644 --- a/src/Mod/CAM/Path/Dressup/Gui/RampEntry.py +++ b/src/Mod/CAM/Path/Dressup/Gui/RampEntry.py @@ -543,7 +543,7 @@ class ObjectDressup: def findMinZ(self, edges): minZ = 99999999999 for edge in edges: - if edge.end_point[2] < minZ: + if edge.command.Name in Path.Geom.CmdMoveAll and edge.end_point[2] < minZ: minZ = edge.end_point[2] return minZ