File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Assets/Integrations/Autodesk/maya/scripts Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ proc int loadUnityPlugin(string $plugin){
68
68
};
69
69
70
70
71
- proc int loadUnityDependencies(){
71
+ global proc int loadUnityDependencies(){
72
72
// GamePipeline plugin 'SendToUnitySelection' command used in export
73
73
$pluginsToLoad = {"GamePipeline", "fbxmaya"};
74
74
@@ -84,7 +84,7 @@ proc int loadUnityDependencies(){
84
84
$result = $result && `loadUnityPlugin ($plugin + "." + $ext)`;
85
85
}
86
86
87
- evalDeferred -low " unityRemoveNativeMenuOnLoad" ;
87
+ unityRemoveNativeMenuOnLoad() ;
88
88
89
89
return $result;
90
90
}
Original file line number Diff line number Diff line change @@ -26,14 +26,15 @@ global proc string unityWhatsNewVersion(){
26
26
}
27
27
28
28
global proc unitySetupUI(){
29
-
29
+ global string $unityCommandsFile;
30
30
$isHeadless = `optionVar -q "UnityFbxForMaya_Headless"`;
31
31
if($isHeadless){
32
32
// headless install, don't add UI
33
33
return;
34
34
}
35
35
36
- loadPlugin "GamePipeline.mll";
36
+ eval ("source " + $unityCommandsFile);
37
+ loadUnityDependencies();
37
38
38
39
evalDeferred -lowestPriority "unityInstallUI";
39
40
}
@@ -79,7 +80,7 @@ global proc unityInstallUI(){
79
80
menuItem -parent $parentMenu -insertAfter $unityMenuDivider -subMenu true -label $unityMenuLabel -tearOff true -version $pluginVersion -image $unityIconPath -annotation $unityFamilyLabel $unityMenuName;
80
81
menuItem -parent $unityMenuName -label $unityImportMenuName -version $pluginVersion -image $unityImportIconPath -annotation $unityImportLabel -command $unityImportCommand;
81
82
menuItem -parent $unityMenuName -label $unityExportMenuName -version $pluginVersion -image $unityExportIconPath -annotation $unityExportLabel -command $unityExportCommand;
82
-
83
+
83
84
$unityRemoveSendToUnityMenuOption = `optionVar -q $unityRemoveSendToUnityMenuOption`;
84
85
if($unityRemoveSendToUnityMenuOption && `menu -exists $unitySendToUnityMenuName`){
85
86
menu -e -visible false $unitySendToUnityMenuName;
You can’t perform that action at this time.
0 commit comments