From a4d3ede368222f87bcba6df8add9d668f848c868 Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Sun, 15 Jun 2025 02:08:47 +0200 Subject: [PATCH] fix context menu on reroute node --- Source/Editor/Surface/VisjectSurface.ContextMenu.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Surface/VisjectSurface.ContextMenu.cs b/Source/Editor/Surface/VisjectSurface.ContextMenu.cs index 6505b4f64..5870125d4 100644 --- a/Source/Editor/Surface/VisjectSurface.ContextMenu.cs +++ b/Source/Editor/Surface/VisjectSurface.ContextMenu.cs @@ -289,7 +289,7 @@ namespace FlaxEditor.Surface _cmStartPos = location; - List startBoxes = new List(_connectionInstigators.Cast()); + List startBoxes = new List(_connectionInstigators.Where(c => c is Box).Cast()); // Position offset added so the user can quickly close the menu by clicking OnShowPrimaryMenu(_activeVisjectCM, _cmStartPos + ContextMenuOffset, startBoxes);