Skip to content

Commit

Permalink
Merge pull request #3601 from Autodesk/samuelliu-adsk/EMSUSD-1012/err…
Browse files Browse the repository at this point in the history
…or_with_duplicate_as_usd

EMSUSD-1012 - Fix the issue caused duplicate as USD failed
  • Loading branch information
samuelliu-adsk committed Feb 7, 2024
1 parent 7332252 commit efd5e6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugin/adsk/scripts/mayaUsdTranslatorExport.mel
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ proc string mayaUsdTranslatorExport_AppendFromTextField(string $currentOptions,
}

global proc mayaUsdTranslatorExport_updateDefaultPrimList() {
if (`optionMenuGrp -exists exportDefaultPrim` == 0){
return;
}

if ((`checkBoxGrp -exists exportMeshesCheckBox` == 0)||(`checkBoxGrp -exists exportLightsCheckBox` == 0)||(`checkBoxGrp -exists exportCamerasCheckBox` == 0)){
return;
}
Expand Down Expand Up @@ -283,6 +287,9 @@ global proc mayaUsdTranslatorExport_updateDefaultPrimList() {
}

global proc onExportParentScopeChanged() {
if (`optionMenuGrp -exists exportDefaultPrim` == 0){
return;
}
string $rootPrim = `textFieldGrp -q -text parentScopeField`;
optionMenuGrp -edit -deleteAllItems exportDefaultPrim;
string $menuName = `optionMenuGrp -q -fullPathName exportDefaultPrim`;
Expand Down

0 comments on commit efd5e6a

Please sign in to comment.