From f2c0369be3c081e35de117b608b488e1017a900e Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 4 Nov 2010 17:14:34 +0000 Subject: [PATCH] set visibility of other models to 0 when creating a new one --- Geo/GModel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp index 9697d63b11..a1749a0b1b 100644 --- a/Geo/GModel.cpp +++ b/Geo/GModel.cpp @@ -134,6 +134,9 @@ GModel::GModel(std::string name) _factory(0), _fields(0), _currentMeshEntity(0), normals(0) { partitionSize[0] = 0; partitionSize[1] = 0; + + for(unsigned int i = 0; i < list.size(); i++) list[i]->setVisibility(0); + list.push_back(this); // at the moment we always create (at least an empty) GEO model _createGEOInternals(); -- GitLab