Skip to content

Commit bf4aaae

Browse files
committed
rename ExportNodes to ExportTransformHierarchy
1 parent d2354d8 commit bf4aaae

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ private string GetUniqueName(string name)
18281828
/// Creates an FbxNode for each GameObject.
18291829
/// </summary>
18301830
/// <returns>The number of nodes exported.</returns>
1831-
protected int ExportNodes(
1831+
protected int ExportTransformHierarchy(
18321832
GameObject unityGo, FbxScene fbxScene, FbxNode fbxNodeParent,
18331833
int exportProgress, int objectCount, Vector3 newCenter,
18341834
TransformExportType exportType = TransformExportType.Local)
@@ -1868,16 +1868,16 @@ protected int ExportNodes(
18681868

18691869
// now unityGo through our children and recurse
18701870
foreach (Transform childT in unityGo.transform) {
1871-
numObjectsExported = ExportNodes (childT.gameObject, fbxScene, fbxNode, numObjectsExported, objectCount, newCenter);
1871+
numObjectsExported = ExportTransformHierarchy (childT.gameObject, fbxScene, fbxNode, numObjectsExported, objectCount, newCenter);
18721872
}
18731873

18741874
return numObjectsExported;
18751875
}
18761876

18771877
/// <summary>
18781878
/// Export components on this game object.
1879-
/// Transform components and animation have already been exported.
1880-
/// This function exports the other components.
1879+
/// Transform components have already been exported.
1880+
/// This function exports the other components and animation.
18811881
/// </summary>
18821882
protected bool ExportComponents(FbxScene fbxScene)
18831883
{
@@ -2150,7 +2150,7 @@ public int ExportAll (IEnumerable<UnityEngine.Object> unityExportSet)
21502150

21512151
if(revisedExportSet.Count == 1){
21522152
foreach(var unityGo in revisedExportSet){
2153-
exportProgress = this.ExportNodes (
2153+
exportProgress = this.ExportTransformHierarchy (
21542154
unityGo, fbxScene, fbxRootNode, exportProgress,
21552155
count, Vector3.zero, TransformExportType.Reset);
21562156
if (exportCancelled || exportProgress < 0) {
@@ -2164,7 +2164,7 @@ public int ExportAll (IEnumerable<UnityEngine.Object> unityExportSet)
21642164
Vector3 center = ExportSettings.centerObjects? FindCenter(revisedExportSet) : Vector3.zero;
21652165

21662166
foreach (var unityGo in revisedExportSet) {
2167-
exportProgress = this.ExportNodes (unityGo, fbxScene, fbxRootNode,
2167+
exportProgress = this.ExportTransformHierarchy (unityGo, fbxScene, fbxRootNode,
21682168
exportProgress, count, center, TransformExportType.Global);
21692169
if (exportCancelled || exportProgress < 0) {
21702170
Debug.LogWarning ("Export Cancelled");

Assets/FbxExporters/Editor/UnitTests/ModelExporterTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ public void TestSkinnedMeshExport(){
567567
var exportedBindposes = exportedMesh.bindposes;
568568
Assert.IsNotNull (exportedBindposes);
569569

570-
Assert.AreEqual(origBindposes.Length, exportedBindposes.Length);
570+
Assert.That(origBindposes.Length == exportedBindposes.Length);
571571

572572
for (int i = 0; i < origBindposes.Length; i++) {
573573
var origBp = origBindposes [i];

0 commit comments

Comments
 (0)