ThePat02 / BehaviourToolkit

A collection of tools for AI Behaviour in the Godot 4 Game Engine!
MIT License
368 stars 15 forks source link

fix: Bugged interaction between FSMStateIntegratedBT and the BT resulting in an incorrect sequence #83

Closed nickswebsite closed 1 month ago

nickswebsite commented 6 months ago

It is probably easier to understand the issue raised in https://github.com/ThePat02/BehaviourToolkit/issues/81with an actual example.

There is a README in examples/bt_sequence_bug/ folder describing the scene that I didn't repeat here.

I added a simple fix, but it feels a little dirty. I'm not sure if there is a more idiomatic way to do this.