Browse Source

GLTFLoader: Remove base attributes existence check from addMorphTargets()

Takahiro 7 years ago
parent
commit
a78c3e9dc0
1 changed files with 0 additions and 4 deletions
  1. 0 4
      examples/js/loaders/GLTFLoader.js

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

@@ -1169,10 +1169,6 @@ THREE.GLTFLoader = ( function () {
 
 		}
 
-		// unnecessary to set morph if base attributes don't exist
-		if ( geometry.attributes.position === undefined ) hasMorphPosition = false;
-		if ( geometry.attributes.normal === undefined ) hasMorphNormal = false;
-
 		if ( ! hasMorphPosition && ! hasMorphNormal ) return;
 
 		var morphPositions = [];