Skip to content

Commit

Permalink
EMSUSD-715 fix context menu in viewport
Browse files Browse the repository at this point in the history
We must create the pop-up menu explicitly, otherwise the menu fails to show in some circumstances.
  • Loading branch information
pierrebai-adsk committed Oct 20, 2023
1 parent f127eda commit 193235e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/adsk/scripts/USDMenuProc.mel
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ global proc USDMenuProc(string $parent, string $obj)
{
$obj = expandToSelection($obj);

popupMenu -e -dai $parent;
setParent -menu $parent;

python("import maya.app.ufe.outlinerSupport; maya.app.ufe.outlinerSupport.buildNonMayaContextMenu('''" + $obj + "''')");

// Allow the user to define a proc with additional menu items
Expand Down

0 comments on commit 193235e

Please sign in to comment.