Explorar el Código

GLTFLoader: Clean up

Takahiro hace 7 años
padre
commit
7dcf777f96
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      examples/js/loaders/GLTFLoader.js

+ 1 - 2
examples/js/loaders/GLTFLoader.js

@@ -2093,8 +2093,7 @@ THREE.GLTFLoader = ( function () {
 			// We builds a single BufferGeometry with .groups from multiple primitives
 			// because all primitives share the same attributes/morph/mode and have indices.
 
-			var primitive = Object.assign( {}, primitives[ 0 ] );
-			primitives = [ primitive ];
+			primitives = [ primitives[ 0 ] ];
 
 			// Sets .groups and combined indices to a geometry later in this method.