]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for Pipe CPP High API
authordbv <dbv@opencascade.com>
Thu, 8 Sep 2016 11:27:28 +0000 (14:27 +0300)
committerdbv <dbv@opencascade.com>
Thu, 8 Sep 2016 11:27:28 +0000 (14:27 +0300)
src/FeaturesAPI/FeaturesAPI_Pipe.cpp
src/FeaturesPlugin/Test/TestPipe.py

index f99cccef2a3d2630b9e76c3b89649855420a33c8..86c042a5210f48c73c540e9f0238dd3593e695f2 100644 (file)
@@ -23,8 +23,7 @@ FeaturesAPI_Pipe::FeaturesAPI_Pipe(const std::shared_ptr<ModelAPI_Feature>& theF
 : ModelHighAPI_Interface(theFeature)
 {
   if(initialize()) {
-    fillAttribute(theBaseObjects, mybaseObjects);
-    setPath(thePath);
+    setByBasePath(theBaseObjects, thePath);
   }
 }
 
index 5cd9a2b9a3cf475128341c521ce94f69cb527a1b..57e371274f72d9ad4360e3b80b38ebe731c54440 100644 (file)
@@ -100,7 +100,7 @@ aSession.finishOperation()
 
 # Test results
 assert (len(aPipeFeature.results()) > 0)
-aSession.undo()
+aSession.undo()
 
 # Create pipe with bi-normal
 aSession.startOperation()
@@ -117,7 +117,7 @@ aSession.finishOperation()
 
 # Test results
 assert (len(aPipeFeature.results()) > 0)
-aSession.undo()
+aSession.undo()
 
 # Create pipe with locations
 # Create a sketch with circle for pipe profile