frenchtoast747 / webgl-obj-loader

A simple OBJ model loader to help facilitate the learning of WebGL.
http://frenchtoast747.github.io/webgl-obj-loader/
MIT License
281 stars 59 forks source link

fixed some whitespace handling #6

Closed ap1 closed 10 years ago

ap1 commented 10 years ago

I added some code to robustly handle obj files with extra spaces. The code in the repository is not able to parse the following:

This commit fixes the above problems. Javascript split() function is hard to customize, so this required some extra code.