Skip to content

Commit

Permalink
Only add rootprim to default prim list if its not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelliu-adsk committed Apr 12, 2024
1 parent 579dbf1 commit 5e0bc29
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 5e0bc29

Please sign in to comment.