Skip to content

Commit 3fa01cf

Browse files
committed
Merge branch 'collada'
2 parents 52fd523 + 756d379 commit 3fa01cf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

main.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,16 @@ int main(int argc, char* const argv[])
211211
}
212212
else
213213
{
214-
std::cout << "Unknown file type (only GML/XML and POLY accepted)" << std::endl;
215-
ioerrs.add_error(901, "Unknown file type (only GML/XML and POLY accepted)");
214+
lsSolids = read3dAssimpfile(inputfile.getValue(), ioerrs);
215+
if (ioerrs.has_errors() == true) {
216+
std::cout << "Errors while reading the input file, aborting." << std::endl;
217+
std::cout << ioerrs.get_report_text() << std::endl;
218+
}
219+
if (ishellfiles.getValue().size() > 0)
220+
{
221+
std::cout << "No inner shells allowed when GML file used as input." << std::endl;
222+
ioerrs.add_error(901, "No inner shells allowed when GML file used as input.");
223+
}
216224
}
217225

218226
//-- now the validation starts

0 commit comments

Comments
 (0)