Browse Source

ColladaLoader: Simplify buildVisualScene()

Mugen87 7 years ago
parent
commit
bdc0326597
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 ];
 				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 ) );
 
 
 			}
 			}