Changeset - 3663c597352b
[Not reviewed]
default
0 2 0
Roeland Merks - 15 years ago 2010-05-26 16:40:58
roeland.merks@cwi.nl
Oh, oh... my previous solution to clean and then reconstruct a new initial condition did not work in all cases. Now I am calling Init(leaffile) during startup initialization only if the user is passing a leafML file during startup (-l option).

user: Roeland Merks <roeland.merks@cwi.nl>
branch 'default'
changed src/VirtualLeaf.cpp
changed src/modelcatalogue.cpp
2 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/VirtualLeaf.cpp
Show inline comments
 
@@ -508,7 +508,8 @@ int main(int argc,char **argv) {
 
      model_catalogue.PopulateModelMenu();
 
    model_catalogue.InstallFirstModel();
 
    
 
    mesh.Clean();
 

	
 
    if (leaffile) 
 
    main_window->Init(leaffile);
 
	  
 
    Cell::SetMagnification(1);
src/modelcatalogue.cpp
Show inline comments
 
@@ -113,7 +113,7 @@ void ModelCatalogue::LoadPlugin(const ch
 
    if (SimPluginInterface *plugin = 
 
	qobject_cast<SimPluginInterface *>(loader.instance())) {
 
      models.append(plugin); 
 
      MyWarning::warning("Successfully loaded model %s",fileName.toStdString().c_str());
 
      //MyWarning::warning("Successfully loaded model %s",fileName.toStdString().c_str());
 
    } else {
 
      MyWarning::warning("Could not load plugin %s",fileName.toStdString().c_str());
 
    }
0 comments (0 inline, 0 general)