Fix infinite loop in STL loader error path

It appears that this was never tested since hitting it caused an infinite loop.

Fixes testcase hangs/c2eb1fa3e74c6ffe0cebcb1672b03140
pull/455/head
Turo Lamminen 2015-02-01 00:35:00 +02:00
parent fe89773c6f
commit b93bd167ed
1 changed files with 1 additions and 0 deletions

View File

@ -308,6 +308,7 @@ void STLImporter::LoadASCIIFile()
{
if (3 == curVertex) {
DefaultLogger::get()->error("STL: a facet with more than 3 vertices has been found");
++sz;
}
else
{