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

set visibility of other models to 0 when creating a new one

parent f7540383
No related branches found
No related tags found
No related merge requests found
...@@ -134,6 +134,9 @@ GModel::GModel(std::string name) ...@@ -134,6 +134,9 @@ GModel::GModel(std::string name)
_factory(0), _fields(0), _currentMeshEntity(0), normals(0) _factory(0), _fields(0), _currentMeshEntity(0), normals(0)
{ {
partitionSize[0] = 0; partitionSize[1] = 0; partitionSize[0] = 0; partitionSize[1] = 0;
for(unsigned int i = 0; i < list.size(); i++) list[i]->setVisibility(0);
list.push_back(this); list.push_back(this);
// at the moment we always create (at least an empty) GEO model // at the moment we always create (at least an empty) GEO model
_createGEOInternals(); _createGEOInternals();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment