From 824903bfef0283310c70a074ae267a27a472561a Mon Sep 17 00:00:00 2001 From: dbv Date: Thu, 8 Sep 2016 14:27:28 +0300 Subject: [PATCH] Fix for Pipe CPP High API --- src/FeaturesAPI/FeaturesAPI_Pipe.cpp | 3 +-- src/FeaturesPlugin/Test/TestPipe.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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 -- 2.39.2