2
0
Эх сурвалжийг харах

GLTFLoader: Remove base attributes existence check from addMorphTargets()

Takahiro 7 жил өмнө
parent
commit
a78c3e9dc0

+ 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 = [];