Skip to content

Commit c10bbfc

Browse files
author
AJubrey
committed
[CHANGED] calling our procedure from commands instead of doing the same work without the call
1 parent e26454c commit c10bbfc

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Assets/Integrations/Autodesk/maya/scripts/unityCommands.mel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ global string $UnityExportSet = "UnityFbxExportSet";
22
global string $UnityFbxFilePathAttr = "unityFbxFilePath";
33
global string $UnityFbxFileNameAttr = "unityFbxFileName";
44

5-
proc unityRemoveNativeMenuOnLoad(){
5+
global proc unityRemoveNativeMenuOnLoad(){
66
$removeSendToUnityMenu = `optionVar -q "UnityFbxForMaya_removeSendToUnityMenu"`;
77
if($removeSendToUnityMenu && `menu -exists "sendToUnityMenu"`){
88
//Remove the GamePipeline 'SendToUnity' button

Assets/Integrations/Autodesk/maya/scripts/unitySetupUI.mel

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ global proc unityInstallUI(){
8181
menuItem -parent $unityMenuName -label $unityImportMenuName -version $pluginVersion -image $unityImportIconPath -annotation $unityImportLabel -command $unityImportCommand;
8282
menuItem -parent $unityMenuName -label $unityExportMenuName -version $pluginVersion -image $unityExportIconPath -annotation $unityExportLabel -command $unityExportCommand;
8383

84-
$unityRemoveSendToUnityMenuOption = `optionVar -q $unityRemoveSendToUnityMenuOption`;
85-
if($unityRemoveSendToUnityMenuOption && `menu -exists $unitySendToUnityMenuName`){
86-
menu -e -visible false $unitySendToUnityMenuName;
87-
}
84+
unityRemoveNativeMenuOnLoad();
8885

8986
}

0 commit comments

Comments
 (0)