From: Renaud NEDELEC Date: Wed, 4 Nov 2015 11:59:48 +0000 (+0100) Subject: [PythonAPI] small fix X-Git-Tag: V_2.1.0~206^2~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ac98570b047bf72a5f75b8a1d83fe7fa6de5f097;hp=3b9bfdf9f81e8baeaace4214fb2f7519b78bbeb2;p=modules%2Fshaper.git [PythonAPI] small fix --- diff --git a/src/PythonAPI/CMakeLists.txt b/src/PythonAPI/CMakeLists.txt index 376853dfb..486a18175 100644 --- a/src/PythonAPI/CMakeLists.txt +++ b/src/PythonAPI/CMakeLists.txt @@ -22,6 +22,7 @@ ADD_UNIT_TESTS( TestSketcherSetPerpendicular.py TestSketcherSetHorizontal.py TestSketcherSetVertical.py + TestSketcherSetRigid.py TestSketcherSetLength.py TestSketcherSetRadius.py TestSketcherSetAngle.py diff --git a/src/PythonAPI/model/sketcher/sketch.py b/src/PythonAPI/model/sketcher/sketch.py index 98bf39b84..9e92a8e26 100644 --- a/src/PythonAPI/model/sketcher/sketch.py +++ b/src/PythonAPI/model/sketcher/sketch.py @@ -247,8 +247,8 @@ class Sketch(Interface): filleting radius.""" constraint = self._feature.addFeature("SketchConstraintFillet") constraint.data().refattr("ConstraintEntityA").setObject(line_1) - constraint.data().reflist("ConstraintEntityB").clear - constraint.data().reflist("ConstraintEntityB").append(line_1) + constraint.data().reflist("ConstraintEntityB").clear() + constraint.data().reflist("ConstraintEntityB").append(line_2) self.execute() return constraint