From d660a1de0ae0301b31617e8b9c3b669505267904 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 12 Sep 2013 10:29:42 +0200 Subject: [PATCH] Fix XS STL reader not populating stats.size correctly --- xs/src/admesh/stlinit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xs/src/admesh/stlinit.c b/xs/src/admesh/stlinit.c index 7b25a1603..a05b6de39 100644 --- a/xs/src/admesh/stlinit.c +++ b/xs/src/admesh/stlinit.c @@ -285,6 +285,7 @@ stl_read(stl_file *stl, int first_facet, int first) stl->facet_start[i] = facet; stl_facet_stats(stl, facet, first); + first = 0; } stl->stats.size.x = stl->stats.max.x - stl->stats.min.x; stl->stats.size.y = stl->stats.max.y - stl->stats.min.y;