reddag / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

material.name is empty #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Trying to reference material.name returns an empty string.

I have added to JSC3D.ObjLoader.prototype.parseMtl @ line 5097

if(mtl != null)
   mtl.material.name = curMtlName;

which appears to fix this without ill effects.

Original issue reported on code.google.com by john.whi...@gmail.com on 1 Jul 2014 at 6:40

GoogleCodeExporter commented 9 years ago
Thanks John! I'll fix it.

Original comment by Humu2...@gmail.com on 2 Jul 2014 at 3:09