Skip to content

Commit 689a4d1

Browse files
committed
log warning if there is nothing to export
1 parent 04cf3da commit 689a4d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,6 +2821,12 @@ public int ExportAll (IEnumerable<UnityEngine.Object> unityExportSet, bool animO
28212821
exportData = new Dictionary<GameObject, AnimationOnlyExportData>();
28222822
}
28232823

2824+
if(count <= 0){
2825+
// nothing to export
2826+
Debug.LogWarning("Nothing to Export");
2827+
return 0;
2828+
}
2829+
28242830
Vector3 center = Vector3.zero;
28252831
var exportType = TransformExportType.Reset;
28262832
if(revisedExportSet.Count != 1){

0 commit comments

Comments
 (0)