Unexpected behaviour with Create Event nodes and Reroute nodes

When you double click a delegate wire from a Create Event node to a Bind Event node it creates the wrong type of reroute node thus causing the Create Event node to stop functioning properly.

107251-capture1.png

This is what happens when you create the Reroute node…

107252-capture2.png

The Create event node loses its selected function and attempting to choose another make the dropdown box disappear.

I figured out why this is happening, the reroute node it created is of the type “Delegate” but for the Create event node to work this should be “Delegate (by ref)”.

107253-capture4.png

A temporary workaround is to create the reroute from the Bind Event as this is a “by ref” type.

107255-capture5.png

107254-capture3.png

Hi KnightArchitects,

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here. You can track the report’s status as the issue is reviewed by our development staff.

I’ve had a quick look into the code for this and here is a solution I came up with, I haven’t tested it much but it does seem to fix this issue.

Just to check if the output is a ref type first.

//@L87 \Source\Editor\BlueprintGraph\Private\K2Node_Knot.cpp
void UK2Node_Knot::PropagatePinType()
{
	UEdGraphPin* MyInputPin  = GetInputPin();
	UEdGraphPin* MyOutputPin = GetOutputPin();

	for (UEdGraphPin* Outputs : MyOutputPin->LinkedTo)
	{
		if (Outputs->PinType.bIsReference)// if output is expecting a ref we should become that ref type
		{
			PropagatePinTypeFromOutput();
			return;
		}
	}

	for (UEdGraphPin* Inputs : MyInputPin->LinkedTo)
	{
		if (Inputs->PinType.PinCategory != UEdGraphSchema_K2::PC_Wildcard)
		{
			PropagatePinTypeFromInput();
			return;
		}
	}

	for (UEdGraphPin* Outputs : MyOutputPin->LinkedTo)
	{
		if (Outputs->PinType.PinCategory != UEdGraphSchema_K2::PC_Wildcard)
		{
			PropagatePinTypeFromOutput();
			return;
		}
	}
//@L119...

Hello, In version 4.24.2 it’s still not fixed and I have still this issue. Can you look at it? Thanks