浏览代码

OBJExporter: remove useless check for object.children

Arthur Schwaiger 10 年之前
父节点
当前提交
67143eb91a
共有 1 个文件被更改,包括 4 次插入7 次删除
  1. 4 7
      examples/js/exporters/OBJExporter.js

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

@@ -91,13 +91,10 @@ THREE.OBJExporter.prototype = {
 		this.indexNormals += nbNormals
 		this.indexNormals += nbNormals
 
 
 		// Create children objects
 		// Create children objects
-		if (object.children && object.children.length > 0) {
-
-			for ( var i in object.children ) {
-				output += '# new children object: ' + object.children[i].id + '\n';
-				output += this.parse( object.children[i], scaleFactor );
-			}
-		}
+        for ( var i in object.children ) {
+            output += '# new children object: ' + object.children[i].id + '\n';
+            output += this.parse( object.children[i], scaleFactor );
+        }
 
 
 		return output;
 		return output;