smart-fun / smartGL

SmartGL is a Graphic Engine for creating Android Games and Apps. It is based on OpenGL and handles 2D Sprites and 3D Textured Objects.
Apache License 2.0
109 stars 24 forks source link

Suggestion: Resilient against multiples spaces #5

Closed ghost closed 7 years ago

ghost commented 7 years ago

In this line : https://github.com/smart-fun/smartGL/blob/master/smartgl/src/main/java/fr/arnaudguyon/smartgl/tools/WavefrontModel.java#L170

instead of

line = line.replace("  ", " ");
String[] elements = line.split(" ");

do this

String[] elements = line.split("\\s+");

It allows for any number of spaces and tabs between vertx coordinates.

smart-fun commented 7 years ago

Thanks dawjdh! You know you can do a pull request and become a contributor to the library if the request is accepted ;)

Arnaud.

smart-fun commented 7 years ago

Hello, I don't know why you are still not contributor :/ I found this: https://help.github.com/articles/why-are-my-contributions-not-showing-up-on-my-profile/