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

fine-tuning

parent 13a5bad2
No related branches found
No related tags found
No related merge requests found
......@@ -127,8 +127,8 @@ static void mergePostProcessingFile(const std::string &fileName)
GModel *old = GModel::current();
if(haveMesh){
GModel *m = new GModel();
m->setVisibility(0);
GModel::setCurrent(m);
m->setVisibility(false);
}
MergeFile(fileName);
GModel::setCurrent(old);
......
......@@ -284,7 +284,8 @@ void PView::combine(bool time, int how, bool remove)
PView *PView::getViewByName(std::string name, int timeStep, int partition)
{
for(unsigned int i = 0; i < list.size(); i++){
// search views from most recently to least recently added
for(int i = list.size() - 1; i >= 0; i--){
if(list[i]->getData()->getName() == name &&
((timeStep < 0 || !list[i]->getData()->hasTimeStep(timeStep)) ||
(partition < 0 || !list[i]->getData()->hasPartition(timeStep, partition))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment