]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update result without erasing
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 30 Oct 2014 09:31:36 +0000 (12:31 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 30 Oct 2014 09:31:36 +0000 (12:31 +0300)
src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp
src/Model/Model_ResultBody.cpp

index 7316f3c2c644ae24b260310ae2af6071170f346f..eeafb1db61e0e7557ff59706166146f75c41b219 100644 (file)
@@ -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<ModelAPI_ResultBody> aResultBody = document()->createBody(data());
   GeomAlgoAPI_Extrusion aFeature(aFace, aSize);
   if(!aFeature.isDone()) {
index ce342c2e99a07a647388c2d6099a8079b6a75edb..807dcc7330ed1077ba7aaa47c8b39ef9c549b1f7 100644 (file)
@@ -111,6 +111,7 @@ void Model_ResultBody::clean()
   std::vector<TNaming_Builder*>::iterator aBuilder = myBuilders.begin();
   for(; aBuilder != myBuilders.end(); aBuilder++)
     delete *aBuilder;
+  myBuilders.clear();
 }
 
 Model_ResultBody::~Model_ResultBody()