Browse Source

GLTFLoader: Remove unnecessary sampler === undefined check

Takahiro 6 years ago
parent
commit
9b9b439118
1 changed files with 0 additions and 3 deletions
  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 channel = animationDef.channels[ i ];
 			var sampler = animationDef.samplers[ channel.sampler ];
 			var sampler = animationDef.samplers[ channel.sampler ];
-
-			if ( sampler === undefined ) continue;
-
 			var target = channel.target;
 			var target = channel.target;
 			var name = target.node !== undefined ? target.node : target.id; // NOTE: target.id is deprecated.
 			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;
 			var input = animationDef.parameters !== undefined ? animationDef.parameters[ sampler.input ] : sampler.input;