Skip to content

Commit 1886ded

Browse files
committed
code review fixes
- update message box text + format so it's easier to read in the file - remove whitespace
1 parent 7dd807c commit 1886ded

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ macroScript UnityImport category:"Unity"
3333
-- ask to set units to cm if not already
3434
if (unityAskSetUnits == undefined or not unityAskSetUnits) and units.SystemType != #Centimeters then (
3535
result = false
36+
message = ("Detected system units set to "+units.SystemType+".\n\n" +
37+
"Using system units other than centimeters is not recommended for the Unity FBX " +
38+
"workflow and may result in unexpected scaling on export.\n\n" +
39+
"Would you like to change the system units to centimeters?")
3640
(
37-
result = queryBox "Using system units other than centimeters is not recommended and may result in unexpected scaling on export.\nWould you like to set system units to centimeters?" title:"Warning"
41+
result = queryBox message title:"Warning, system units not set to centimeters"
3842
)
3943
if result then (
4044
units.SystemType = #Centimeters
@@ -51,7 +55,7 @@ macroScript UnityImport category:"Unity"
5155
-- Get all objects in scene before importAction
5256
origObjects = objects as array
5357
callbacks.addScript #postImport ("afterImport()") id:#unityPlugin
54-
58+
5559
importFile fbxFileName using:FBXIMP
5660

5761
unityFbxFilePathAttr = getFilenamePath fbxFileName

0 commit comments

Comments
 (0)