diff --git a/plugin/adsk/scripts/mayaUsdMenu.mel b/plugin/adsk/scripts/mayaUsdMenu.mel index 187d7f92d6..d9edc2f433 100644 --- a/plugin/adsk/scripts/mayaUsdMenu.mel +++ b/plugin/adsk/scripts/mayaUsdMenu.mel @@ -675,12 +675,14 @@ global proc mayaUsdMenu_markingMenuCallback( string $obj ) string $pulledObject = getPulledUsdObject($obj); if ($pulledObject != "") { - string $pushback = python("import mayaUsdMergeToUsd; mayaUsdMergeToUsd.createMenuItem(\"" + $pulledObject + "\", \"\")"); + string $label = getMayaUsdString("kContextMenuLayerEditor"); + string $icon = "USD_generic.png"; + string $layerEditor = `menuItem -label $label -insertAfter "" -image $icon -command ("mayaUsdLayerEditorWindow -proxyShape " + $pulledObject + " mayaUsdLayerEditor")`; + + string $pushback = python("import mayaUsdMergeToUsd; mayaUsdMergeToUsd.createMenuItem('" + $pulledObject + "', '"+ $layerEditor +"')"); int $isMayaRef = python("import mayaUsdUtils; mayaUsdUtils.isPulledMayaReference('''" + $pulledObject + "''')"); - string $label; - string $icon; if ($isMayaRef) { $label = getMayaUsdString("kMayaRefDiscardEdits"); $icon = "discard_edits.png";