Closed soraphis closed 7 months ago
Thanks for a precise repro :)
I kinda managed to fix the first problem, pins won't disappear if I would call pin reconstruction from PostEditUndo
. Sadly, it's not enough to fix a crash. More time is needed to dig into the scheme of transactions here.
This is what I have locally.
void UFlowNode::PostEditUndo()
{
UObject::PostEditUndo();
// rebuild context pins on Undo any of node properties
if (SupportsContextPins())
{
OnReconstructionRequested.ExecuteIfBound();
}
}
Fixed by a pull request :) https://github.com/MothCocoon/FlowGraph/pull/189
Reproduction:
Result:
My guess is that there is no "OnReconstructionRequested.ExecuteIfBound()" call for Undo!?
To make it crash the editor:
Reproduction: