File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Assets/Integrations/Autodesk/maya/scripts Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ proc int loadUnityDependencies(){
78
78
}
79
79
80
80
$removeSendToUnityMenu = `optionVar -q "UnityFbxForMaya_removeSendToUnityMenu"`;
81
- if($removeSendToUnityMenu){
81
+ if($removeSendToUnityMenu && `menu -exists "sendToUnityMenu"` ){
82
82
//Remove the GamePipeline 'SendToUnity' button
83
83
menu -e -visible false "sendToUnityMenu";
84
84
}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ global proc unityInstallUI(){
79
79
menuItem -parent $unityMenuName -label $unityExportMenuName -version $pluginVersion -image $unityExportIconPath -annotation $unityExportLabel -command $unityExportCommand;
80
80
81
81
$unityRemoveSendToUnityMenuOption = `optionVar -q $unityRemoveSendToUnityMenuOption`;
82
- if($unityRemoveSendToUnityMenuOption){
82
+ if($unityRemoveSendToUnityMenuOption && `menu -exists $unitySendToUnityMenuName` ){
83
83
menu -e -visible false $unitySendToUnityMenuName;
84
84
}
85
85
You can’t perform that action at this time.
0 commit comments