浏览代码

remove conditional

Lewy Blue 7 年之前
父节点
当前提交
ccba1fd97c
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      examples/js/loaders/FBXLoader.js

+ 2 - 3
examples/js/loaders/FBXLoader.js

@@ -2017,7 +2017,7 @@
 
 
 			var parents = connections.get( parseInt( skeleton.ID ) ).parents;
 			var parents = connections.get( parseInt( skeleton.ID ) ).parents;
 
 
-			parents.forEach( function ( parent, i ) {
+			parents.forEach( function ( parent ) {
 
 
 				if ( geometryMap.has( parent.ID ) ) {
 				if ( geometryMap.has( parent.ID ) ) {
 
 
@@ -2030,8 +2030,7 @@
 
 
 							var model = modelMap.get( geoConnParent.ID );
 							var model = modelMap.get( geoConnParent.ID );
 
 
-							if ( geoConnParent.ID in bindMatrices ) model.bind( new THREE.Skeleton( skeleton.bones ), bindMatrices[ geoConnParent.ID ] );
-							else model.bind( new THREE.Skeleton( skeleton.bones ), model.matrixWorld );
+							model.bind( new THREE.Skeleton( skeleton.bones ), bindMatrices[ geoConnParent.ID ] );
 
 
 						}
 						}