Skip to content

Commit

Permalink
Fix crash when OBJ export path is invalid (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
Down-s authored Aug 12, 2024
1 parent 550f146 commit 3a030b0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,12 @@ public static void ExportDynamicObject(SteamAudioDynamicObject dynamicObject, bo
var dataAsset = (!exportOBJ) ? GetDataAsset(dynamicObject) : null;
var objFileName = (exportOBJ) ? GetOBJFileName(dynamicObject) : "";

if (!exportOBJ && dataAsset == null)
return;

if (exportOBJ && (objFileName == null || objFileName.Length == 0))
return;

Export(objects, dynamicObject.name, dataAsset, objFileName, true, exportOBJ);
}

Expand Down

0 comments on commit 3a030b0

Please sign in to comment.