Set global Mesh pointer

This commit is contained in:
Matthias Hochsteger 2018-06-13 14:01:56 +02:00
parent cbe8bcb553
commit 63ee20cb29

View File

@ -160,6 +160,7 @@ void Ng_LoadMesh (const char * filename)
infile = new ifstream (filename); infile = new ifstream (filename);
mesh.reset (new Mesh()); mesh.reset (new Mesh());
mesh -> Load(*infile); mesh -> Load(*infile);
SetGlobalMesh (mesh);
// make string from rest of file (for geometry info!) // make string from rest of file (for geometry info!)
if(!ng_geometry) { if(!ng_geometry) {