From 588b964a54e9c75dcadfb7ed1b1ea95ed2f948b9 Mon Sep 17 00:00:00 2001 From: jffmichi <> Date: Thu, 28 Sep 2023 21:10:21 +0200 Subject: [PATCH] Path: fix LeadInOutDressup incorrectly treating missing axis words as being 0 --- src/Mod/Path/Path/Dressup/Gui/LeadInOut.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/Path/Dressup/Gui/LeadInOut.py b/src/Mod/Path/Path/Dressup/Gui/LeadInOut.py index 23f9e6f73f..4b9a2b65a1 100644 --- a/src/Mod/Path/Path/Dressup/Gui/LeadInOut.py +++ b/src/Mod/Path/Path/Dressup/Gui/LeadInOut.py @@ -559,7 +559,10 @@ class ObjectDressup: queue = [] # Save all move commands - queue.append(curCommand) + # getLeadStart and getLeadEnd incorrectly treat missing axis words as being 0. + currXYZ = { k: currLocation[k] for k in "XYZ" if k in currLocation } + tmp = Path.Command(curCommand.Name, currXYZ | curCommand.Parameters) + queue.append(tmp) currLocation.update(curCommand.Parameters) prevCmd = curCommand