From 64ee9f335c81ebd992bed491c43bc57065a355cc Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Wed, 2 Jun 2021 14:28:56 +0200 Subject: [PATCH] Draft: Fix gui_stretch If a wire is created to replace a rectangle, the MakeFace property of the wire should match that of the rectangle. --- src/Mod/Draft/draftguitools/gui_stretch.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/draftguitools/gui_stretch.py b/src/Mod/Draft/draftguitools/gui_stretch.py index e0f23e8ac8..8b4befe842 100644 --- a/src/Mod/Draft/draftguitools/gui_stretch.py +++ b/src/Mod/Draft/draftguitools/gui_stretch.py @@ -451,8 +451,10 @@ class Stretch(gui_base_original.Modifier): else: pts.append(vts[i].Point.add(self.displacement)) pts = str(pts).replace("Vector ", "FreeCAD.Vector") - _cmd = "Draft.makeWire" - _cmd += "(" + pts + ", closed=True)" + _cmd = "Draft.make_wire" + _cmd += "(" + pts + ", closed=True, " + _cmd += "face=" + str(ops[0].MakeFace) + _cmd += ")" _format = "Draft.formatObject" _format += "(w, " _format += _doc + ops[0].Name