diff --git a/plugin/adsk/scripts/mayaUsdTranslatorExport.mel b/plugin/adsk/scripts/mayaUsdTranslatorExport.mel index 1bc8c3364a..99c04c4405 100644 --- a/plugin/adsk/scripts/mayaUsdTranslatorExport.mel +++ b/plugin/adsk/scripts/mayaUsdTranslatorExport.mel @@ -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){