浏览代码

simplify morph target parsing

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

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

@@ -733,35 +733,7 @@
 
 
 			targetRelationships.children.forEach( function ( child ) {
 			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;
 
 
 			} );
 			} );