Salome HOME
Fix: SWIG std::list<std::shared_ptr<GeomAPI_Shape>> problem
[modules/shaper.git] / src / PythonAPI / modeler / sketcher.py
index b0b3376c53d571ca55763dc4dc5126c027cf7cb8..c9737224ea2ec566efc24277c2b4c52283aa74f6 100644 (file)
@@ -161,10 +161,10 @@ class Sketch():
     dx = geomDataAPI_Dir( self.my.data().attribute("DirX") ).dir()
     n  = geomDataAPI_Dir( self.my.data().attribute("Norm") ).dir()
 
-    self.faces = ShapeList()      # The faces are kept otherwise they are destroyed at exit
-    GeomAlgoAPI_SketchBuilder.createFaces(o, dx, n, self.selection, self.faces)
+    faces = ShapeList()      # The faces are kept otherwise they are destroyed at exit
+    GeomAlgoAPI_SketchBuilder.createFaces(o, dx, n, self.selection, faces)
 #TODO: Deal with several faces 
-    return self.faces[0]
+    return faces[0]
 
   def result (self):
     """Returns the result data of this Feature."""