From e05e1e2dd7405abf741ae4e98b11cfd3ec60b1c7 Mon Sep 17 00:00:00 2001 From: azv Date: Mon, 19 Aug 2019 14:44:45 +0300 Subject: [PATCH] Fix error in Pipe naming (issue #17281) --- src/FeaturesPlugin/FeaturesPlugin_Pipe.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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); } -- 2.39.2