# HG changeset patch # User Roeland Merks # Date 2010-05-26 16:24:52 # Node ID 0c49e452410f8650b93f988d5dd11e7e20991e59 # Parent 857d43889502687f3fa414965a8ac276b95ea9f9 After default initialization two polygons were constructed. Corrected. diff --git a/src/VirtualLeaf.cpp b/src/VirtualLeaf.cpp --- a/src/VirtualLeaf.cpp +++ b/src/VirtualLeaf.cpp @@ -507,7 +507,8 @@ int main(int argc,char **argv) { if (useGUI) model_catalogue.PopulateModelMenu(); model_catalogue.InstallFirstModel(); - + + mesh.Clean(); main_window->Init(leaffile); Cell::SetMagnification(1); diff --git a/src/modelcatalogue.cpp b/src/modelcatalogue.cpp --- a/src/modelcatalogue.cpp +++ b/src/modelcatalogue.cpp @@ -145,17 +145,17 @@ void ModelCatalogue::InstallModel(QActio void ModelCatalogue::InstallModel(SimPluginInterface *plugin) { - // make sure both main and plugin use the same static datamembers (ncells, nchems...) - plugin->SetCellsStaticDatamembers(CellBase::GetStaticDataMemberPointer()); + // make sure both main and plugin use the same static datamembers (ncells, nchems...) + plugin->SetCellsStaticDatamembers(CellBase::GetStaticDataMemberPointer()); - mesh->SetSimPlugin(plugin); - Cell::SetNChem(plugin->NChem()); - plugin->SetParameters(&par); + mesh->SetSimPlugin(plugin); + Cell::SetNChem(plugin->NChem()); + plugin->SetParameters(&par); - if (mainwin) { - mainwin->RefreshInfoBar(); - mainwin->Init(0); - } - // mesh->StandardInit(); + if (mainwin) { + mainwin->RefreshInfoBar(); + mainwin->Init(0); + } + // mesh->StandardInit(); }