From: azv Date: Mon, 19 Aug 2019 11:44:45 +0000 (+0300) Subject: Fix error in Pipe naming (issue #17281) X-Git-Tag: VEDF2019Lot4~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e05e1e2dd7405abf741ae4e98b11cfd3ec60b1c7;p=modules%2Fshaper.git Fix error in Pipe naming (issue #17281) --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Pipe.cpp b/src/FeaturesPlugin/FeaturesPlugin_Pipe.cpp index f5a45f605..c3a387887 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Pipe.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Pipe.cpp @@ -18,7 +18,6 @@ // #include "FeaturesPlugin_Pipe.h" -#include "FeaturesPlugin_Tools.h" #include #include @@ -374,12 +373,11 @@ void FeaturesPlugin_Pipe::storeResult(const ListOfShape& theBaseShapes, aResultBody->loadGeneratedShapes(thePipeAlgo, thePathShape, GeomAPI_Shape::EDGE); // Store from shapes. - FeaturesPlugin_Tools::loadModifiedShapes(aResultBody, thePipeAlgo->fromShapes(), ListOfShape(), - thePipeAlgo, thePipeAlgo->shape(), "From"); + storeShapes(aResultBody, theBaseShapes.front()->shapeType(), thePipeAlgo->fromShapes(), "From_"); // Store to shapes. - FeaturesPlugin_Tools::loadModifiedShapes(aResultBody, thePipeAlgo->toShapes(), ListOfShape(), - thePipeAlgo, thePipeAlgo->shape(), "To"); + storeShapes(aResultBody, theBaseShapes.back()->shapeType(), thePipeAlgo->toShapes(), "To_"); + setResult(aResultBody, theResultIndex); }