JeremyAnsel / JeremyAnsel.Media.WavefrontObj

A .Net library to handle Wavefront Obj .obj and .mtl files.
https://jeremyansel.github.io/JeremyAnsel.Media.WavefrontObj/
MIT License
10 stars 7 forks source link

A usemtl statement has too many values #3

Closed MGerdel closed 1 year ago

MGerdel commented 1 year ago

Whitespaces in the material name cause an exception when calling ObjFile.FromFile(filePath);

For example: usemtl name with whitespaces

Other 3D tools like blender or threejs are allowing whitespaces in the material name.

Would it be possible to allow whitespaces in this library too?

JeremyAnsel commented 1 year ago

Hello, I've updated the library. Now whitespaces are allowed in material name. In 40020b8df9eb953f1fa2380411ab5efea4562758, I've updated the newmtl and usemtl statements to allow whitespaces.

MGerdel commented 1 year ago

@JeremyAnsel Would it be possible to release this fix for a "2.20" version or target net standard 2.0 again?

JeremyAnsel commented 1 year ago

Hello, I've added support for net standard 2.0