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

change graph bbox when changing current model

parent d9949a30
Branches
Tags
No related merge requests found
......@@ -76,7 +76,8 @@ void GetResources(double *s, long *mem)
#endif
}
void CheckResources(){
void CheckResources()
{
#if !defined (WIN32) || defined(__CYGWIN__)
static struct rlimit r;
......
......@@ -19,6 +19,7 @@
#include "GUI.h"
#include "dialogWindow.h"
#include "GmshDefines.h"
#include "OpenFile.h"
#include "CreateFile.h"
#include "Options.h"
#include "Draw.h"
......@@ -144,6 +145,7 @@ static void model_switch_cb(Fl_Widget* w, void *data)
Fl_Select_Browser *b = (Fl_Select_Browser *)w;
if(b->value()){
GModel::current(b->value() - 1);
SetBoundingBox();
for(unsigned int i = 0; i < GModel::list.size(); i++)
GModel::list[i]->setVisibility(0);
GModel::current()->setVisibility(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment