提交 015573fc 编写于 作者: L Lewy Blue

return all morph targets

上级 56827c86
...@@ -99,7 +99,7 @@ THREE.FBXLoader = ( function () { ...@@ -99,7 +99,7 @@ THREE.FBXLoader = ( function () {
} }
console.log( fbxTree ); // console.log( fbxTree );
var textureLoader = new THREE.TextureLoader( this.manager ).setPath( resourceDirectory ).setCrossOrigin( this.crossOrigin ); var textureLoader = new THREE.TextureLoader( this.manager ).setPath( resourceDirectory ).setCrossOrigin( this.crossOrigin );
...@@ -743,14 +743,6 @@ THREE.FBXLoader = ( function () { ...@@ -743,14 +743,6 @@ THREE.FBXLoader = ( function () {
for ( var i = 0; i < relationships.children.length; i ++ ) { for ( var i = 0; i < relationships.children.length; i ++ ) {
if ( i === 8 ) {
console.warn( 'FBXLoader: maximum of 8 morph targets supported. Ignoring additional targets.' );
break;
}
var child = relationships.children[ i ]; var child = relationships.children[ i ];
var morphTargetNode = deformerNodes[ child.ID ]; var morphTargetNode = deformerNodes[ child.ID ];
...@@ -774,8 +766,6 @@ THREE.FBXLoader = ( function () { ...@@ -774,8 +766,6 @@ THREE.FBXLoader = ( function () {
} ); } );
console.log('rawMorphTarget', rawMorphTarget);
rawMorphTargets.push( rawMorphTarget ); rawMorphTargets.push( rawMorphTarget );
} }
...@@ -2705,8 +2695,6 @@ THREE.FBXLoader = ( function () { ...@@ -2705,8 +2695,6 @@ THREE.FBXLoader = ( function () {
} ); } );
console.log('rawTracks', rawTracks.morphName);
var morphNum = sceneGraph.getObjectByName( rawTracks.modelName ).morphTargetDictionary[ rawTracks.morphName ]; var morphNum = sceneGraph.getObjectByName( rawTracks.modelName ).morphTargetDictionary[ rawTracks.morphName ];
return new THREE.NumberKeyframeTrack( rawTracks.modelName + '.morphTargetInfluences[' + morphNum + ']', curves.times, values ); return new THREE.NumberKeyframeTrack( rawTracks.modelName + '.morphTargetInfluences[' + morphNum + ']', curves.times, values );
...@@ -2896,7 +2884,7 @@ THREE.FBXLoader = ( function () { ...@@ -2896,7 +2884,7 @@ THREE.FBXLoader = ( function () {
parse: function ( text ) { parse: function ( text ) {
this.currentIndent = 0; this.currentIndent = 0;
console.log("FBXTree: ", FBXTree);
this.allNodes = new FBXTree(); this.allNodes = new FBXTree();
this.nodeStack = []; this.nodeStack = [];
this.currentProp = []; this.currentProp = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册