derkork / godot-statecharts

A state charts extension for Godot 4
MIT License
679 stars 33 forks source link

`CompoundState` reports error upon only having 1 child state #96

Closed mieldepoche closed 3 months ago

mieldepoche commented 3 months ago

image

derkork commented 3 months ago

There is an obvious typo here which I will fix. Technically it will work with 1 child state but I don't see a use case where I would use a compound state with a single child state rather than just the child state itself. So maybe I'd change the error message with a single child to something like "compound state only has a single child, consider removing the compound state and use the child state directly". What do you think?