Fix the output of a c3t3 to a polygon soup

The stream iostate must be cleared before it can be reused.
This commit is contained in:
Laurent Rineau 2015-03-04 12:03:35 +01:00
parent 720db67b6b
commit 067b134c65
1 changed files with 1 additions and 0 deletions

View File

@ -288,6 +288,7 @@ public slots:
if(!item->load(off_sstream))
{
delete item;
off_sstream.clear();
off_sstream.str(backup);
// Try to read .off in a polygon soup