From: vsv Date: Thu, 30 Oct 2014 09:31:36 +0000 (+0300) Subject: Update result without erasing X-Git-Tag: V_0.5~60^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8fda5cfb5829320d3d80194e01c65bec9d4b62b2;p=modules%2Fshaper.git Update result without erasing --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp b/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp index 7316f3c2c..eeafb1db6 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp @@ -65,7 +65,6 @@ void FeaturesPlugin_Extrusion::execute() if (data()->boolean(FeaturesPlugin_Extrusion::REVERSE_ID())->value()) aSize = -aSize; - eraseResults(); // to erase the previously stored naming structures boost::shared_ptr aResultBody = document()->createBody(data()); GeomAlgoAPI_Extrusion aFeature(aFace, aSize); if(!aFeature.isDone()) { diff --git a/src/Model/Model_ResultBody.cpp b/src/Model/Model_ResultBody.cpp index ce342c2e9..807dcc733 100644 --- a/src/Model/Model_ResultBody.cpp +++ b/src/Model/Model_ResultBody.cpp @@ -111,6 +111,7 @@ void Model_ResultBody::clean() std::vector::iterator aBuilder = myBuilders.begin(); for(; aBuilder != myBuilders.end(); aBuilder++) delete *aBuilder; + myBuilders.clear(); } Model_ResultBody::~Model_ResultBody()