From 6e25e08273ba04dd5432dc4401240f069752231b Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 19 Jan 2016 12:13:36 -1000 Subject: [PATCH] MS STL iteration fix --- DataSpec/DNACommon/MAPA.hpp | 4 ++++ hecl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/DataSpec/DNACommon/MAPA.hpp b/DataSpec/DNACommon/MAPA.hpp index f4c1bd603..471afa270 100644 --- a/DataSpec/DNACommon/MAPA.hpp +++ b/DataSpec/DNACommon/MAPA.hpp @@ -396,6 +396,10 @@ bool ReadMAPAToBlender(HECL::BlenderConnection& conn, } flip ^= 1; + /* Break if done */ + if (iit == prim.indices.cend()) + break; + bool peek = (v >= prim.indexCount - 3); /* Advance one prim vert */ diff --git a/hecl b/hecl index 30dd74476..966ec1ab3 160000 --- a/hecl +++ b/hecl @@ -1 +1 @@ -Subproject commit 30dd74476e59bcba3717dddb9ead6a26523d3a39 +Subproject commit 966ec1ab3323d6f4e4352eb459ba60523f8d8440