Fix double context menu invokation

SurfaceNode.cs already takes care of opening the context menu
This commit is contained in:
stefnotch
2021-01-09 11:26:29 +01:00
parent 10cdbc8fbc
commit ef2dbb7818
@@ -464,15 +464,7 @@ namespace FlaxEditor.Surface
{
// Check if any control is under the mouse
_cmStartPos = location;
if (controlUnderMouse != null)
{
if (!HasNodesSelection)
Select(controlUnderMouse);
// Show secondary context menu
ShowSecondaryCM(_cmStartPos, controlUnderMouse);
}
else
if (controlUnderMouse == null)
{
// Show primary context menu
ShowPrimaryMenu(_cmStartPos);