From 83d6b38c2c34468855ac0e60401820719846d684 Mon Sep 17 00:00:00 2001 From: Samuel Liu Date: Wed, 23 Aug 2023 14:31:34 -0400 Subject: [PATCH] Change the annotation to lower case so it matches with the token string --- plugin/adsk/scripts/mayaUsdTranslatorExport.mel | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/plugin/adsk/scripts/mayaUsdTranslatorExport.mel b/plugin/adsk/scripts/mayaUsdTranslatorExport.mel index 291f600923..bbde998002 100644 --- a/plugin/adsk/scripts/mayaUsdTranslatorExport.mel +++ b/plugin/adsk/scripts/mayaUsdTranslatorExport.mel @@ -679,13 +679,10 @@ global proc int mayaUsdTranslatorExport (string $parent, } optionMenuGrp -l `getMayaUsdString("kExportRelativeTexturesLbl")` -annotation `getMayaUsdString("kExportRelativeTexturesAnn")` exportRelativeTexturesPopup; - string $lbl; - $lbl = getMayaUsdString("kExportRelativeTexturesAutomaticLbl"); - menuItem -l $lbl -ann $lbl; - $lbl = getMayaUsdString("kExportRelativeTexturesAbsoluteLbl"); - menuItem -l $lbl -ann $lbl; - $lbl = getMayaUsdString("kExportRelativeTexturesRelativeLbl"); - menuItem -l $lbl -ann $lbl; + // The annotation will be used to assign value to token exportRelativeTextures, so lower case is used + menuItem -l `getMayaUsdString("kExportRelativeTexturesAutomaticLbl")` -ann "automatic"; + menuItem -l `getMayaUsdString("kExportRelativeTexturesAbsoluteLbl")` -ann "absolute"; + menuItem -l `getMayaUsdString("kExportRelativeTexturesRelativeLbl")` -ann "relative"; separator -style "none"; setParent ..;