Browse Source

simplify morph target parsing

Lewy Blue 7 years ago
parent
commit
ac1c328b87
1 changed files with 1 additions and 29 deletions
  1. 1 29
      examples/js/loaders/FBXLoader.js

+ 1 - 29
examples/js/loaders/FBXLoader.js

@@ -733,35 +733,7 @@
 
 			targetRelationships.children.forEach( function ( child ) {
 
-
-				if ( child.relationship === 'DeformPercent' ) { // animation info for morph target
-
-					var animConnections = connections.get( child.ID );
-					// parent relationship 'DeformPercent' === morphTargetNode /2605340465664
-					// parent relationship 'undefined' === AnimationLayer /2606600117184
-					// child relationship 'd|DeformPercent' === AnimationCurve /2606284032736
-
-					rawMorphTarget.weightCurveID = child.ID;
-
-					animConnections.parents.forEach( function ( parent ) {
-
-						if ( parent.relationship === undefined ) {
-
-							// assuming each morph target is in a single animation layer for now
-							rawMorphTarget.animationLayerID = parent.ID;
-
-						}
-
-					} );
-
-					// assuming each morph target has a single animation curve for now
-					rawMorphTarget.animationCurveID = animConnections.children[ 0 ].ID;
-
-				} else {
-
-					rawMorphTarget.geoID = child.ID;
-
-				}
+				if ( child.relationship === undefined ) rawMorphTarget.geoID = child.ID;
 
 			} );