From: spo Date: Fri, 30 Oct 2015 08:12:32 +0000 (+0300) Subject: Fix bug in sketch.addLine() X-Git-Tag: V_2.1.0~206^2~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=64f0457bc1b4ddfc103b171e14ee84be8aa95e35;p=modules%2Fshaper.git Fix bug in sketch.addLine() --- 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() )