Skip to content

Commit 2249695

Browse files
author
AJubrey
committed
[FIXED] I messed up the merge but fixed it here, changed some names and re added some declarations
1 parent a276f08 commit 2249695

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ global proc unityInstallUI(){
5656
global string $unityImportCommand;
5757
global string $unityExportCommand;
5858

59+
global string $unityRemoveSendToUnityMenuOption;
60+
global string $unitySendToUnityMenuName;
61+
5962
global string $gMainFileMenu;
6063

6164
buildFileMenu;
@@ -67,8 +70,8 @@ global proc unityInstallUI(){
6770
menuItem -parent $unityMenuName -label $unityImportMenuName -version $pluginVersion -image $unityImportIconPath -annotation $unityImportLabel -command $unityImportCommand;
6871
menuItem -parent $unityMenuName -label $unityExportMenuName -version $pluginVersion -image $unityExportIconPath -annotation $unityExportLabel -command $unityExportCommand;
6972

70-
$removeOtherMenu = `optionVar -q $unityRemoveSendToUnityMenuOption`;
71-
if($removeOtherMenu){
73+
$unityRemoveSendToUnityMenuOption = `optionVar -q $unityRemoveSendToUnityMenuOption`;
74+
if($unityRemoveSendToUnityMenuOption){
7275
menu -e -visible false $unitySendToUnityMenuName;
7376
}
7477

0 commit comments

Comments
 (0)