File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Assets/Integrations/Autodesk/mayalt/scripts Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ global proc setupUnityUI(){
7
7
evalDeferred -lowestPriority "buildFileMenu; \
8
8
$parentMenu = $gMainFileMenu; \
9
9
$pluginVersion = whatsNewVersion(); \
10
- source \"unityImport \"; \
10
+ source \"unityCommands.mel \"; \
11
11
menuItem -parent $parentMenu -insertAfter $kMenuInsertAfter -divider true -longDivider false -version $pluginVersion $kMenuDivider; \
12
12
menuItem -parent $parentMenu -insertAfter $kMenuDivider -subMenu true -label $kMenuLabel -tearOff true -version $pluginVersion $kMenuName; \
13
13
menuItem -parent $kMenuName -label \"Import\" -version $pluginVersion -command \"unityImport\"; \
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ global proc unityImport(){
14
14
15
15
$filePath = `fileDialog2 -dialogStyle 2 -caption "FBX Import" -dir ($unityProject + "/Assets") -fileFilter "*.fbx" -selectFileFilter "FBX" -fileMode 1`;
16
16
17
+ print $filePath;
17
18
18
19
// store path and filename
19
20
if(size($filePath) <= 0){
@@ -155,10 +156,10 @@ global proc int loadUnityPlugin(string $plugin){
155
156
if (`pluginInfo -q -loaded $plugin` == false){
156
157
loadPlugin $plugin;
157
158
if (`pluginInfo -q -loaded $plugin` == false){
158
- return 0 /* false*/ ;
159
+ return false;
159
160
}
160
161
}
161
- return 1 /* true*/ ;
162
+ return true;
162
163
};
163
164
164
165
@@ -178,4 +179,4 @@ global proc int loadUnityDependencies(){
178
179
$result = $result && `loadUnityPlugin ($plugin + "." + $ext)`;
179
180
}
180
181
return $result;
181
- }
182
+ }
You can’t perform that action at this time.
0 commit comments