kvark / obj

Basic Wavefront OBJ loader
Apache License 2.0
29 stars 12 forks source link

More robust comment handling in mtl files #7

Closed kaini closed 6 years ago

kaini commented 6 years ago

The mtl-parser crashes if a file contains a comment without a space after the leading #, for example:

## This line crashes the parser

This patch fixes the problem, the same way it is already fixed in the obj-file parser.