- Minor cleanup

This commit is contained in:
Nils Hausfeld
2023-09-25 23:26:33 +02:00
parent 3b393ef4db
commit d8e2b06c38

View File

@@ -122,13 +122,6 @@ namespace FlaxEditor.Surface.ContextMenu
return true;
}
if (_archetype.Title == "GetChild")
{
Debug.Log("");
Debug.Log(_archetype.Create == null);
Debug.Log(_archetype.Create.GetType() == typeof(FlaxEditor.Surface.Archetypes.Function.MethodOverrideNode));
}
if (_archetype?.Elements == null)
{
Visible = false;
@@ -161,15 +154,7 @@ namespace FlaxEditor.Surface.ContextMenu
}
bool checkCompatibility = CanCastToType(inType, outType, hint);
/*if (!checkCompatibility)
{
/*checkCompatibility = element.ConnectionsType == null && startBox.CurrentType != ScriptType.Object;#1#
checkCompatibility =
}*/
isCompatible |= checkCompatibility;
/*if(!isCompatible)
Debug.Log($"Is {_archetype.Title} cant connect type {element.ConnectionsType}");*/
}
Visible = isCompatible;