]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
[PythonAPI] fix for Dev_1.5.0 merge
authorRenaud NEDELEC <renaud.nedelec@opencascade.com>
Wed, 4 Nov 2015 09:38:55 +0000 (10:38 +0100)
committerRenaud NEDELEC <renaud.nedelec@opencascade.com>
Wed, 4 Nov 2015 09:38:55 +0000 (10:38 +0100)
src/PythonAPI/model/sketcher/sketch.py

index ee3ed51228cd11213a195d8106e1675df01793c2..75cf7584254bed76f061a899e08eb9160d00b2c1 100644 (file)
@@ -246,9 +246,11 @@ class Sketch(Interface):
         """Set a fillet constraint between the 2 given lines with the given
         filleting radius."""
         constraint = self._feature.addFeature("SketchConstraintFillet")
-        constraint.data().refattr("ConstraintEntityA").setObject(line_1)
-        constraint.data().refattr("ConstraintEntityB").setObject(line_2)
-        constraint.data().real("ConstraintValue").setValue(radius)
+        constraint.data().reflist("ConstraintEntityA").clear
+        constraint.data().reflist("ConstraintEntityA").append(line_1)
+        constraint.data().reflist("ConstraintEntityB").clear
+        constraint.data().reflist("ConstraintEntityB").append(line_1)
+        
         self.execute()
         return constraint