Skip to content

Commit 6da09a5

Browse files
committed
check if export failed
1 parent 380febb commit 6da09a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/FbxExporters/Editor/ConvertToModel.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ private static List<GameObject> OnConvertInPlace ()
8686
for(int i = 0; i < fbxFileNames.Length; i++)
8787
{
8888
var fbxFileName = fbxFileNames [i];
89+
if (fbxFileName == null) {
90+
Debug.Log (string.Format ("Warning: Export failed for GameObject {0}", gosToExport [i].name));
91+
continue;
92+
}
8993

9094
// make filepath relative to project folder
9195
if (fbxFileName.StartsWith (Application.dataPath, System.StringComparison.CurrentCulture))

0 commit comments

Comments
 (0)