|
@@ -49,6 +49,11 @@ THREE.OBJExporter.prototype = {
|
|
// name of the mesh object
|
|
// name of the mesh object
|
|
output += 'o ' + mesh.name + '\n';
|
|
output += 'o ' + mesh.name + '\n';
|
|
|
|
|
|
|
|
+ // name of the mesh material
|
|
|
|
+ if ( mesh.material && mesh.material.name ) {
|
|
|
|
+ output += 'usemtl ' + mesh.material.name + '\n';
|
|
|
|
+ }
|
|
|
|
+
|
|
// vertices
|
|
// vertices
|
|
|
|
|
|
if( vertices !== undefined ) {
|
|
if( vertices !== undefined ) {
|