Skip to content

Commit 7afc984

Browse files
committed
rename unityImport.mel to unityCommands.mel
1 parent 7be5080 commit 7afc984

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Assets/Integrations/Autodesk/mayalt/scripts/setupUnityUI.mel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ global proc setupUnityUI(){
77
evalDeferred -lowestPriority "buildFileMenu; \
88
$parentMenu = $gMainFileMenu; \
99
$pluginVersion = whatsNewVersion(); \
10-
source \"unityImport\"; \
10+
source \"unityCommands.mel\"; \
1111
menuItem -parent $parentMenu -insertAfter $kMenuInsertAfter -divider true -longDivider false -version $pluginVersion $kMenuDivider; \
1212
menuItem -parent $parentMenu -insertAfter $kMenuDivider -subMenu true -label $kMenuLabel -tearOff true -version $pluginVersion $kMenuName; \
1313
menuItem -parent $kMenuName -label \"Import\" -version $pluginVersion -command \"unityImport\"; \

Assets/Integrations/Autodesk/mayalt/scripts/unityImport.mel renamed to Assets/Integrations/Autodesk/mayalt/scripts/unityCommands.mel

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ global proc unityImport(){
1414

1515
$filePath = `fileDialog2 -dialogStyle 2 -caption "FBX Import" -dir ($unityProject + "/Assets") -fileFilter "*.fbx" -selectFileFilter "FBX" -fileMode 1`;
1616

17+
print $filePath;
1718

1819
// store path and filename
1920
if(size($filePath) <= 0){
@@ -155,10 +156,10 @@ global proc int loadUnityPlugin(string $plugin){
155156
if (`pluginInfo -q -loaded $plugin` == false){
156157
loadPlugin $plugin;
157158
if (`pluginInfo -q -loaded $plugin` == false){
158-
return 0 /*false*/;
159+
return false;
159160
}
160161
}
161-
return 1 /*true*/;
162+
return true;
162163
};
163164

164165

@@ -178,4 +179,4 @@ global proc int loadUnityDependencies(){
178179
$result = $result && `loadUnityPlugin ($plugin + "." + $ext)`;
179180
}
180181
return $result;
181-
}
182+
}

0 commit comments

Comments
 (0)