cnr-isti-vclab / corto

Mesh compression library, designed for rendering and speed.
Other
196 stars 43 forks source link

FIX [ objload ] face reading only worked for v/t/n #15

Closed kuegi closed 3 years ago

kuegi commented 6 years ago

in case of "v" or "v/t" (which are valid obj face formats) the reading of last vertex in the face produced an error (cause tried to peek or even get() at eof) which resulted in the last vertex being discarded therefore every face missed one vertex. for triangular faces that meant the whole face was invalid an discard. so triangular meshes got discarded completly.