public void DrawConnectionInputPointMark(NodeEvent eventSource, bool justConnecting)
{
if (scaleFactor != SCALE_MAX) return;
var defaultPointTex = NodeGUIUtility.inputPointMarkTex;
bool shouldDrawEnable =
!( eventSource != null && eventSource.eventSourceNode != null &&
!ConnectionData.CanConnect(eventSource.eventSourceNode.Data, m_data)
);
if (shouldDrawEnable && justConnecting && eventSource != null) {
if (eventSource.eventSourceNode.Id != this.Id) {
var connectionPoint = eventSource.point;
if (connectionPoint.IsOutput) {
defaultPointTex = NodeGUIUtility.enablePointMarkTex;
}
}
}
foreach (var point in m_data.InputPoints) {
GUI.DrawTexture(
point.GetGlobalPointRegion(this),
defaultPointTex
);
}
}