Skip to content

Commit

Permalink
Merge pull request #3717 from Autodesk/samuelliu-adsk/EMSUSD-1202/che…
Browse files Browse the repository at this point in the history
…ck_empty_rootprim

EMSUSD-1202 - Default prim lists an empty item on export.
  • Loading branch information
seando-adsk authored Apr 15, 2024
2 parents 87fcff3 + 5e0bc29 commit 1f1f034
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/adsk/scripts/mayaUsdTranslatorExport.mel
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ global proc mayaUsdTranslatorExport_updateDefaultPrimList() {
// check if there's a root prim defined, if so add to list
if (`textFieldGrp -exists rootPrimField` != 0){
string $rootPrim = `textFieldGrp -q -text rootPrimField`;
menuItem -parent ($menuName + "|OptionMenu") -l $rootPrim;
if(size($rootPrim) > 0){
menuItem -parent ($menuName + "|OptionMenu") -l $rootPrim;
}
}

for($item in $allItems){
Expand Down

0 comments on commit 1f1f034

Please sign in to comment.