Browse Source

Code style and remove TODO

Lars Moastuen 9 years ago
parent
commit
ae7443f4b2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      examples/js/exporters/OBJExporter.js

+ 4 - 1
examples/js/exporters/OBJExporter.js

@@ -23,9 +23,13 @@ THREE.OBJExporter.prototype = {
 			var nbNormals = 0;
 
 			var geometry = mesh.geometry;
+
 			if ( geometry instanceof THREE.BufferGeometry ) {
+
 				geometry = new THREE.Geometry().fromBufferGeometry(geometry);
+
 			}
+
 			if ( geometry instanceof THREE.Geometry ) {
 
 				output += 'o ' + mesh.name + '\n';
@@ -126,7 +130,6 @@ THREE.OBJExporter.prototype = {
 			} else {
 
 				console.warn( 'THREE.OBJExporter.parseMesh(): geometry type unsupported', mesh );
-				// TODO: Support only BufferGeometry and use use setFromObject()
 
 			}