From 0247e2e0b605388f33c46753826645db6fd92a32 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 26 Nov 2012 17:38:50 +0000 Subject: [PATCH] missing GModel::setCurrent in readMED --- Geo/GModel.cpp | 1 + Geo/GModelIO_MED.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp index 544f4b702f..9a5f5b50fe 100644 --- a/Geo/GModel.cpp +++ b/Geo/GModel.cpp @@ -2313,6 +2313,7 @@ void GModel::save(std::string fileName) CreateOutputFile(fileName, guess); GModel::setCurrent(temp); } + GEdge* GModel::addCompoundEdge(std::vector<GEdge*> edges, int num){ if (num ==-1) num = getMaxElementaryNumber(1) + 1; diff --git a/Geo/GModelIO_MED.cpp b/Geo/GModelIO_MED.cpp index 82cc29ab00..1f77c05b10 100644 --- a/Geo/GModelIO_MED.cpp +++ b/Geo/GModelIO_MED.cpp @@ -213,9 +213,8 @@ int GModel::readMED(const std::string &name) for(unsigned int i = 0; i < meshNames.size(); i++){ GModel *m = findByName(meshNames[i]); if(!m){ - for(unsigned int j = 0; j < GModel::list.size(); j++) - GModel::list[j]->setVisibility(0); m = new GModel(meshNames[i]); + GModel::setCurrent(m); } ret = m->readMED(name, i); if(!ret) return 0; -- GitLab