Fix XS STL reader not populating stats.size correctly

This commit is contained in:
Alessandro Ranellucci 2013-09-12 10:29:42 +02:00
parent bc48e17dff
commit d660a1de0a

View File

@ -285,6 +285,7 @@ stl_read(stl_file *stl, int first_facet, int first)
stl->facet_start[i] = facet; stl->facet_start[i] = facet;
stl_facet_stats(stl, facet, first); stl_facet_stats(stl, facet, first);
first = 0;
} }
stl->stats.size.x = stl->stats.max.x - stl->stats.min.x; stl->stats.size.x = stl->stats.max.x - stl->stats.min.x;
stl->stats.size.y = stl->stats.max.y - stl->stats.min.y; stl->stats.size.y = stl->stats.max.y - stl->stats.min.y;