MothCocoon / FlowGraph

Design-agnostic node system for scripting game’s flow in Unreal Engine
https://discord.gg/Xmtr6GhbmW
MIT License
1.22k stars 241 forks source link

Add validation error on FlowAsset for disallowed node classes #165

Closed Deams51 closed 1 year ago

Deams51 commented 1 year ago

Validation was not checking for disallowed node classes in a flow asset, which can happen if the node classes allowed were changed after nodes were added to the graph.

To not duplicate the node class allowed logic, I've encapsulated it in a function on the flow asset and it is being called by the validation and schema.

MothDoctor commented 1 year ago

Accepted, thanks! It's nice moving existing code from the Graph Schema to the asset itself :)