20tab / UnrealEnginePython

Embed Python in Unreal Engine 4
MIT License
2.77k stars 754 forks source link

ExecutePythonString blueprint function not available on load project #451

Open HughMacdonald opened 6 years ago

HughMacdonald commented 6 years ago

This is possibly related to #450

When I load my project, a blueprint that I have that calls ExecutePythonString always errors saying that it can''t find a function named that. I keep having to delete the node and then re-add it.

HughMacdonald commented 6 years ago

I discovered the root cause of this, and have submitted a proper bug report for it. It was nothing to do with UEP, and was an issue with any blueprint function revealed through a plugin.

The problem was to do with the Sequence Recorder window. If this referenced a Blueprint, any blueprint functions defined in plugins would not be linked, and would be erroring when a project is loaded.

I ended up making a temporary fix by creating a base class which the Sequence Recorder window linked to, and then putting my functionality in a subclass.

From a brief test, it appears that this is fixed in 4.20