File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Assets/Integrations/Autodesk/maya/scripts Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ global string $UnityExportSet = "UnityFbxExportSet";
2
2
global string $UnityFbxFilePathAttr = "unityFbxFilePath";
3
3
global string $UnityFbxFileNameAttr = "unityFbxFileName";
4
4
5
- proc unityRemoveNativeMenuOnLoad(){
5
+ global proc unityRemoveNativeMenuOnLoad(){
6
6
$removeSendToUnityMenu = `optionVar -q "UnityFbxForMaya_removeSendToUnityMenu"`;
7
7
if($removeSendToUnityMenu && `menu -exists "sendToUnityMenu"`){
8
8
//Remove the GamePipeline 'SendToUnity' button
Original file line number Diff line number Diff line change @@ -81,9 +81,6 @@ global proc unityInstallUI(){
81
81
menuItem -parent $unityMenuName -label $unityImportMenuName -version $pluginVersion -image $unityImportIconPath -annotation $unityImportLabel -command $unityImportCommand;
82
82
menuItem -parent $unityMenuName -label $unityExportMenuName -version $pluginVersion -image $unityExportIconPath -annotation $unityExportLabel -command $unityExportCommand;
83
83
84
- $unityRemoveSendToUnityMenuOption = `optionVar -q $unityRemoveSendToUnityMenuOption`;
85
- if($unityRemoveSendToUnityMenuOption && `menu -exists $unitySendToUnityMenuName`){
86
- menu -e -visible false $unitySendToUnityMenuName;
87
- }
84
+ unityRemoveNativeMenuOnLoad();
88
85
89
86
}
You can’t perform that action at this time.
0 commit comments