提交 14c48aa3 编写于 作者: M makc 提交者: GitHub

OBJExporter: log material names

上级 ff25afe7
......@@ -49,6 +49,11 @@ THREE.OBJExporter.prototype = {
// name of the mesh object
output += 'o ' + mesh.name + '\n';
// name of the mesh material
if ( mesh.material && mesh.material.name ) {
output += 'usemtl ' + mesh.material.name + '\n';
}
// vertices
if( vertices !== undefined ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册