Skip to content

Commit efd5e6a

Browse files
Merge pull request #3601 from Autodesk/samuelliu-adsk/EMSUSD-1012/error_with_duplicate_as_usd
EMSUSD-1012 - Fix the issue caused duplicate as USD failed
1 parent 7332252 commit efd5e6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugin/adsk/scripts/mayaUsdTranslatorExport.mel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ proc string mayaUsdTranslatorExport_AppendFromTextField(string $currentOptions,
252252
}
253253

254254
global proc mayaUsdTranslatorExport_updateDefaultPrimList() {
255+
if (`optionMenuGrp -exists exportDefaultPrim` == 0){
256+
return;
257+
}
258+
255259
if ((`checkBoxGrp -exists exportMeshesCheckBox` == 0)||(`checkBoxGrp -exists exportLightsCheckBox` == 0)||(`checkBoxGrp -exists exportCamerasCheckBox` == 0)){
256260
return;
257261
}
@@ -283,6 +287,9 @@ global proc mayaUsdTranslatorExport_updateDefaultPrimList() {
283287
}
284288

285289
global proc onExportParentScopeChanged() {
290+
if (`optionMenuGrp -exists exportDefaultPrim` == 0){
291+
return;
292+
}
286293
string $rootPrim = `textFieldGrp -q -text parentScopeField`;
287294
optionMenuGrp -edit -deleteAllItems exportDefaultPrim;
288295
string $menuName = `optionMenuGrp -q -fullPathName exportDefaultPrim`;

0 commit comments

Comments
 (0)