From 83ec49eb70e4ce49c3c928e5527208eaaa1efe33 Mon Sep 17 00:00:00 2001 From: James Waples Date: Sat, 15 Jul 2023 11:14:55 +0100 Subject: [PATCH] Path: Fix undefined method error in LeadInOut dressup A regression from #9506 where `self.multiply` was removed but not all references to it were updated. I'm not a Python guy but from what I can see the behaviour is the same - `offsetvector` is still an `App.Vector` which `self.multiply` used to use as well. Tested with a project that previously didn't work, and now shows a nice `Arc`-type dressup in a circular pocket. --- src/Mod/Path/Path/Dressup/Gui/LeadInOut.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/Path/Dressup/Gui/LeadInOut.py b/src/Mod/Path/Path/Dressup/Gui/LeadInOut.py index 20c2022737..bb794e0392 100644 --- a/src/Mod/Path/Path/Dressup/Gui/LeadInOut.py +++ b/src/Mod/Path/Path/Dressup/Gui/LeadInOut.py @@ -282,7 +282,7 @@ class ObjectDressup: t = p0.sub(leadstart) t = p0.add(t) leadstart = t - offsetvector = self.multiply(offsetvector, -1) + offsetvector = offsetvector.multiply(-1) elif obj.StyleOn == "Tangent": # This is wrong. please fix leadstart = (p0.add(off_v)).sub(offsetvector) @@ -290,7 +290,7 @@ class ObjectDressup: t = p0.sub(leadstart) t = p0.add(t) leadstart = t - offsetvector = self.multiply(offsetvector, -1) + offsetvector = offsetvector.multiply(-1) else: # perpendicular leadstart = p0.add(off_v)