Pārlūkot izejas kodu

remove conditional

Lewy Blue 7 gadi atpakaļ
vecāks
revīzija
ccba1fd97c
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  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;
 
-			parents.forEach( function ( parent, i ) {
+			parents.forEach( function ( parent ) {
 
 				if ( geometryMap.has( parent.ID ) ) {
 
@@ -2030,8 +2030,7 @@
 
 							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 ] );
 
 						}