@@ -590,6 +590,9 @@ public bool ExportMesh (Mesh mesh, FbxNode fbxNode, Material[] materials = null)
590
590
return ExportMesh ( meshInfo , fbxNode ) ;
591
591
}
592
592
593
+ /// <summary>
594
+ /// Keeps track of the index of each point in the exported vertex array.
595
+ /// </summary>
593
596
private Dictionary < Vector3 , int > ControlPointToIndex = new Dictionary < Vector3 , int > ( ) ;
594
597
595
598
/// <summary>
@@ -791,7 +794,6 @@ private bool ExportSkeleton (SkinnedMeshRenderer skinnedMesh, FbxScene fbxScene)
791
794
fbxSkeleton . SetSkeletonType ( fbxSkeletonType ) ;
792
795
fbxSkeleton . Size . Set ( 1.0f * UnitScaleFactor ) ;
793
796
fbxBoneNode . SetNodeAttribute ( fbxSkeleton ) ;
794
- //if (Verbose) { Debug.Log("Converted " + unityBoneTransform.name + " to a " + fbxSkeletonType + " bone"); }
795
797
}
796
798
}
797
799
@@ -1165,14 +1167,12 @@ protected int ExportComponents (
1165
1167
unityGo . name = ConvertToMayaCompatibleName ( unityGo . name ) ;
1166
1168
}
1167
1169
1170
+ // create an FbxNode and add it as a child of parent
1168
1171
FbxNode fbxNode ;
1169
1172
bool alreadyExported = MapUnityObjectToFbxNode . TryGetValue ( unityGo , out fbxNode ) ;
1170
1173
if ( ! alreadyExported ) {
1171
1174
fbxNode = FbxNode . Create ( fbxScene , GetUniqueName ( unityGo . name ) ) ;
1172
1175
}
1173
-
1174
- // create an FbxNode and add it as a child of parent
1175
- //FbxNode fbxNode = FbxNode.Create (fbxScene, GetUniqueName (unityGo.name));
1176
1176
NumNodes ++ ;
1177
1177
1178
1178
numObjectsExported ++ ;
@@ -1209,8 +1209,8 @@ protected int ExportComponents (
1209
1209
MapUnityObjectToFbxNode . Add ( unityGo , fbxNode ) ;
1210
1210
}
1211
1211
1212
- // if (Verbose)
1213
- // Debug.Log (string.Format ("exporting {0}", fbxNode.GetName ()));
1212
+ if ( Verbose )
1213
+ Debug . Log ( string . Format ( "exporting {0}" , fbxNode . GetName ( ) ) ) ;
1214
1214
1215
1215
fbxNodeParent . AddChild ( fbxNode ) ;
1216
1216
0 commit comments