From: dbv Date: Thu, 8 Sep 2016 11:27:28 +0000 (+0300) Subject: Fix for Pipe CPP High API X-Git-Tag: V_2.5.0~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=824903bfef0283310c70a074ae267a27a472561a;p=modules%2Fshaper.git Fix for Pipe CPP High API --- diff --git a/src/FeaturesAPI/FeaturesAPI_Pipe.cpp b/src/FeaturesAPI/FeaturesAPI_Pipe.cpp index f99cccef2..86c042a52 100644 --- a/src/FeaturesAPI/FeaturesAPI_Pipe.cpp +++ b/src/FeaturesAPI/FeaturesAPI_Pipe.cpp @@ -23,8 +23,7 @@ FeaturesAPI_Pipe::FeaturesAPI_Pipe(const std::shared_ptr& theF : ModelHighAPI_Interface(theFeature) { if(initialize()) { - fillAttribute(theBaseObjects, mybaseObjects); - setPath(thePath); + setByBasePath(theBaseObjects, thePath); } } diff --git a/src/FeaturesPlugin/Test/TestPipe.py b/src/FeaturesPlugin/Test/TestPipe.py index 5cd9a2b9a..57e371274 100644 --- a/src/FeaturesPlugin/Test/TestPipe.py +++ b/src/FeaturesPlugin/Test/TestPipe.py @@ -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