瀏覽代碼

GLTFLoader: Remove base attributes existence check from addMorphTargets()

Takahiro 7 年之前
父節點
當前提交
a78c3e9dc0
共有 1 個文件被更改,包括 0 次插入4 次删除
  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 = [];