From ac98570b047bf72a5f75b8a1d83fe7fa6de5f097 Mon Sep 17 00:00:00 2001 From: Renaud NEDELEC Date: Wed, 4 Nov 2015 12:59:48 +0100 Subject: [PATCH] [PythonAPI] small fix --- src/PythonAPI/CMakeLists.txt | 1 + src/PythonAPI/model/sketcher/sketch.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2