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.
This commit is contained in:
Roy-043
2021-06-02 14:28:56 +02:00
committed by GitHub
parent fc50ef8f0f
commit 6cbd0cb9b4

View File

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