From 64f0457bc1b4ddfc103b171e14ee84be8aa95e35 Mon Sep 17 00:00:00 2001 From: spo Date: Fri, 30 Oct 2015 11:12:32 +0300 Subject: [PATCH] Fix bug in sketch.addLine() --- src/PythonAPI/model/sketcher/sketch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PythonAPI/model/sketcher/sketch.py b/src/PythonAPI/model/sketcher/sketch.py index a5ff89777..d4df571cb 100644 --- a/src/PythonAPI/model/sketcher/sketch.py +++ b/src/PythonAPI/model/sketcher/sketch.py @@ -83,7 +83,7 @@ class Sketch(Interface): # if the line is created by name add a rigid constraint # to the created line if len(args) == 1 and isinstance(args[0], str): - constraint = sketch.addFeature("SketchConstraintRigid") + constraint = self._feature.addFeature("SketchConstraintRigid") constraint.refattr("ConstraintEntityA").setObject( line_feature.firstResult() ) -- 2.39.2