Explorar el Código

GLTFLoader: Remove unnecessary sampler === undefined check

Takahiro hace 7 años
padre
commit
9b9b439118
Se han modificado 1 ficheros con 0 adiciones y 3 borrados
  1. 0 3
      examples/js/loaders/GLTFLoader.js

+ 0 - 3
examples/js/loaders/GLTFLoader.js

@@ -2841,9 +2841,6 @@ THREE.GLTFLoader = ( function () {
 
 			var channel = animationDef.channels[ i ];
 			var sampler = animationDef.samplers[ channel.sampler ];
-
-			if ( sampler === undefined ) continue;
-
 			var target = channel.target;
 			var name = target.node !== undefined ? target.node : target.id; // NOTE: target.id is deprecated.
 			var input = animationDef.parameters !== undefined ? animationDef.parameters[ sampler.input ] : sampler.input;

粤ICP备19079148号