From 3a75c0e086d3492a156a4dbad083a33c881f5d30 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 16 Jul 2013 16:30:44 -0300 Subject: [PATCH] 0001184: Support for arc segments in Draft wires Draft wires can now be based on a sketch with arcs, by using the Upgrade tool on a sketch. --- src/Mod/Draft/Draft.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 119905c08..e7db49a3d 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -2167,7 +2167,7 @@ def upgrade(objects,delete=False,force=None): elif wires and (not faces) and (not openwires): # we have a sketch: Extract a face - if (len(objects) == 1) and objects[0].isDerivedFrom("Sketcher::SketchObject") and (not curves): + if (len(objects) == 1) and objects[0].isDerivedFrom("Sketcher::SketchObject"): result = makeSketchFace(objects[0]) if result: msg(translate("draft", "Found 1 closed sketch object: making a face from it\n")) @@ -3249,9 +3249,6 @@ class _Wire(_DraftObject): if fp.Base.Shape.isClosed(): shape = Part.Face(shape) fp.Shape = shape - p = [] - for v in shape.Vertexes: p.append(v.Point) - if fp.Points != p: fp.Points = p elif fp.Base and fp.Tool: if fp.Base.isDerivedFrom("Part::Feature") and fp.Tool.isDerivedFrom("Part::Feature"): if (not fp.Base.Shape.isNull()) and (not fp.Tool.Shape.isNull()):