Path: fix LeadInOutDressup incorrectly treating missing axis words as being 0

This commit is contained in:
jffmichi
2023-09-28 21:10:21 +02:00
parent d7fcbc79a8
commit 588b964a54

View File

@@ -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