]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix bug in sketch.addLine()
authorspo <sergey.pokhodenko@opencascade.com>
Fri, 30 Oct 2015 08:12:32 +0000 (11:12 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 30 Oct 2015 13:42:52 +0000 (16:42 +0300)
src/PythonAPI/model/sketcher/sketch.py

index a5ff8977704421d628145578c4c50eb7a3d7a2ca..d4df571cbb2db09bb3f25c9911de5c45981a655c 100644 (file)
@@ -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()
                 )