Skip to content
Snippets Groups Projects
Commit 1ea1d7e1 authored by Karsten Rink's avatar Karsten Rink
Browse files

added check for input mesh not found

parent f91844d9
No related branches found
No related tags found
No related merge requests found
...@@ -233,6 +233,11 @@ int main(int argc, char* argv[]) ...@@ -233,6 +233,11 @@ int main(int argc, char* argv[])
{ {
std::unique_ptr<MeshLib::Mesh> mesh( std::unique_ptr<MeshLib::Mesh> mesh(
MeshLib::IO::readMeshFromFile(layer)); MeshLib::IO::readMeshFromFile(layer));
if (mesh == nullptr)
{
ERR("Input layer '{:s}' not found. Aborting...", layer);
return EXIT_FAILURE;
}
adjustExtent(extent, *mesh); adjustExtent(extent, *mesh);
layers.emplace_back(std::move(mesh)); layers.emplace_back(std::move(mesh));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment