Revert previous checks, revert switch intend

This commit is contained in:
W2.Wizard
2021-02-21 19:48:23 +01:00
parent 35b687bf3d
commit 89734760fa
11 changed files with 123 additions and 110 deletions

View File

@@ -686,9 +686,10 @@ namespace FlaxEditor.Surface.Elements
public bool CanConnectWith(IConnectionInstigator other)
{
var start = this;
var end = other as Box;
// Allow only box with box connection
if (!(other is Box end))
if (end == null)
{
// Cannot
return false;