Skip to content

Commit 79245ed

Browse files
committed
code review fix
1 parent f13fb69 commit 79245ed

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Integrations/Autodesk/maya/scripts/unityCommands.mel

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ proc int loadUnityFbxSettings(string $settingType, string $optionVarName, string
9292
}
9393

9494
// if the file still doesn't exist (failed to create)
95-
// print an error message.
95+
// load the default settings and print a warning
9696
if (`file -q -ex $fileName` == false){
97-
error ("Failed to find Unity Fbx "+$settingType+" Settings at: " + $fileName);
98-
return false;
97+
warning ("Failed to find Unity Fbx "+$settingType+" Settings at: " + $fileName + ", loading default settings.");
98+
eval ($defaultSettings);
99+
return true;
99100
}
100101

101102
eval ("source \"" + $fileName + "\"");

0 commit comments

Comments
 (0)