Procházet zdrojové kódy

GLTFLoader: Remove base attributes existence check from addMorphTargets()

Takahiro před 7 roky
rodič
revize
a78c3e9dc0
1 změnil soubory, kde provedl 0 přidání a 4 odebrání
  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;
 		if ( ! hasMorphPosition && ! hasMorphNormal ) return;
 
 
 		var morphPositions = [];
 		var morphPositions = [];

粤ICP备19079148号