Skip to content
Snippets Groups Projects
Commit efc95b29 authored by Emilie Marchandise's avatar Emilie Marchandise
Browse files

Creates by default a GeoFactory

parent 1f5d0836
Branches
Tags
No related merge requests found
...@@ -181,7 +181,7 @@ int GModel::setCurrent(GModel *m) ...@@ -181,7 +181,7 @@ int GModel::setCurrent(GModel *m)
void GModel::setFactory(std::string name) void GModel::setFactory(std::string name)
{ {
if(_factory) delete _factory; if(_factory) delete _factory;
_factory = 0; _factory = new GeoFactory(); //creates by default a GeoFactory
if(name == "Gmsh") { if(name == "Gmsh") {
_factory = new GeoFactory(); _factory = new GeoFactory();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment