Skip to content
Snippets Groups Projects
Commit 0247e2e0 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

missing GModel::setCurrent in readMED

parent 93f64d63
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment