Commit 1ab77e16 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'Throw_error_when_no_readers_are_available' into 'master'

Throw error when no readers are available



See merge request !69
parents 2822bb61 c8ad04b7
Pipeline #2055 passed with stage
in 74 minutes and 32 seconds
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<b>IO</b> <b>IO</b>
<ul> <ul>
<li>PLY Reader: Fixed binary reader errors in ply reader. (Thanks to Michael Kremer for the patch)</li> <li>PLY Reader: Fixed binary reader errors in ply reader. (Thanks to Michael Kremer for the patch)</li>
<li>Throw error when no readers are available (Thanks to Christian Feurer for the patch)</li>
</ul> </ul>
<b>Build System</b> <b>Build System</b>
......
...@@ -94,6 +94,12 @@ read(const std::string& _filename, BaseImporter& _bi, Options& _opt) ...@@ -94,6 +94,12 @@ read(const std::string& _filename, BaseImporter& _bi, Options& _opt)
std::set<BaseReader*>::const_iterator it = reader_modules_.begin(); std::set<BaseReader*>::const_iterator it = reader_modules_.begin();
std::set<BaseReader*>::const_iterator it_end = reader_modules_.end(); std::set<BaseReader*>::const_iterator it_end = reader_modules_.end();
if( it == it_end )
{
omerr() << "[OpenMesh::IO::_IOManager_] No reading modules available!\n";
return false;
}
// Try all registered modules // Try all registered modules
for(; it != it_end; ++it) for(; it != it_end; ++it)
if ((*it)->can_u_read(_filename)) if ((*it)->can_u_read(_filename))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment