Describe the bug
When an actor (any node with a BeehaveTree) is reparented with actor.reparent(new_parent_node), it ceases to appear in the list of actors in the Beehave debug menu, so you cannot see the tree in real-time.
To Reproduce
Steps to reproduce the behavior:
Create the node structure:
Main
NewParentNode
Actor
BeehaveTree
ActionLeaf
Attach a script to Main, and add the following to its _ready() function:
func _ready():
var actor = $Actor
var new_parent_node = $NewParentNode
actor.reparent(new_parent_node)
Run the game, go to the Beehave debug menu, and the actor's BeehaveTree will not appear.
(You can also have the reparenting happen on a timer to see it disappear in real-time)
Expected behavior
Beehave trees of reparented nodes continue to appear in the Beehave debug menu
Screenshots
If applicable, add screenshots to help explain your problem.
Setup:
Before reparenting:
After reparenting:
Desktop (please complete the following information):
OS: Windows 11
Version: 23H2 (OS Build 22631.3447)
Smartphone (please complete the following information):
N/A (I think, I don't really understand the question)
Godot version: Godot_v4.2.1-stable_win64
Describe the bug When an actor (any node with a BeehaveTree) is reparented with actor.reparent(new_parent_node), it ceases to appear in the list of actors in the Beehave debug menu, so you cannot see the tree in real-time.
To Reproduce Steps to reproduce the behavior:
Create the node structure:
Attach a script to Main, and add the following to its _ready() function:
Run the game, go to the Beehave debug menu, and the actor's BeehaveTree will not appear.
(You can also have the reparenting happen on a timer to see it disappear in real-time)
Expected behavior Beehave trees of reparented nodes continue to appear in the Beehave debug menu
Screenshots If applicable, add screenshots to help explain your problem. Setup:![BeehaveDebug1](https://github.com/bitbrain/beehave/assets/48933534/a08cec8a-e026-45a7-a96c-68f3d54e86ba)
Before reparenting:![BeehaveDebug2](https://github.com/bitbrain/beehave/assets/48933534/6b1a6af2-ff14-40ab-82d7-8d55fb71032b)
After reparenting:![BeehaveDebug3](https://github.com/bitbrain/beehave/assets/48933534/86321f4c-1d98-494a-9a42-474bd4af783f)
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context N/A