Skip to content

Commit 70c1380

Browse files
committed
UNI-42755 code review fixes
- check if unity project path is defined before exporting
1 parent 53581a0 commit 70c1380

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/Integrations/Autodesk/max/scripts/UnityFbxForMaxPlugin.ms

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ struct UnityExportHelpers (
255255
)
256256
else(
257257
unityProjectPath = getINISetting (GetMAXIniFile()) "Unity" "UnityProject"
258-
exportFileName = getSaveFileName caption:"Export FBX to Unity" filename:(unityProjectPath + "/Assets/") types:"FBX (*.fbx)|*.fbx|"
258+
if(unityProjectPath != undefined and unityProjectPath != "") do (
259+
exportFileName = getSaveFileName caption:"Export FBX to Unity" filename:(unityProjectPath + "/Assets/") types:"FBX (*.fbx)|*.fbx|"
260+
)
259261
)
260262

261263
if exportFileName != undefined then (

0 commit comments

Comments
 (0)