Skip to content

Commit 76a3aad

Browse files
committed
add clarifying comments to different object counts
1 parent d98b1d2 commit 76a3aad

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Packages/com.unity.formats.fbx/Editor/Scripts/FbxExporter.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3417,8 +3417,17 @@ internal int ExportAll (
34173417
int exportProgress = 0;
34183418
IEnumerable<GameObject> revisedExportSet = null;
34193419

3420+
// Total # of objects to be exported
3421+
// Used by progress bar to show how many objects will be exported in total
3422+
// i.e. exporting x/count...
34203423
int count = 0;
3421-
int rootObjCount = 0; // # of objects to export that are root objects
3424+
3425+
// number of object hierarchies being exported.
3426+
// Used to figure out exported transforms for root objects.
3427+
// i.e. if we are exporting a single hierarchy at local position, then it's root is set to zero,
3428+
// but if we are exporting multiple hierarchies at local position, then each hierarchy will be recentered according
3429+
// to the center of the bounding box.
3430+
int rootObjCount = 0;
34223431

34233432
if(animOnly){
34243433
count = GetAnimOnlyHierarchyCount(exportData);

0 commit comments

Comments
 (0)