Browse Source

Merge pull request #13384 from Mugen87/dev8

ColladaLoader: Simplify buildVisualScene()
Mr.doob 7 years ago
parent
commit
9495156450
1 changed files with 1 additions and 11 deletions
  1. 1 11
      examples/js/loaders/ColladaLoader.js

+ 1 - 11
examples/js/loaders/ColladaLoader.js

@@ -3450,17 +3450,7 @@ THREE.ColladaLoader.prototype = {
 
 				var child = children[ i ];
 
-				if ( child.id === null ) {
-
-					group.add( buildNode( child ) );
-
-				} else {
-
-					// if there is an ID, let's try to get the finished build (e.g. joints are already build)
-
-					group.add( getNode( child.id ) );
-
-				}
+				group.add( getNode( child.id ) );
 
 			}