Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reloading scene debug issue #310

Merged

Conversation

zeroregard
Copy link
Contributor

Description

When you reload the scene, it seems that behaviour trees are not unregistered properly for debugging purposes. That means they will keep being in the Beehave debug tab and the Debugger output will be flooded with a lot of error messages.

Screenshots

image

@@ -13,7 +13,7 @@ func _on_debug_message(message: String, data: Array) -> bool:
_set_active_tree(data[0])
return true
if message == "visibility_changed":
if _active_tree:
if _active_tree && is_instance_valid(_active_tree):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also had to add this because the previously active tree gets chopped when reloading the scene.

@bitbrain
Copy link
Owner

Amazing, thanks!

@bitbrain bitbrain merged commit 2ebcde6 into bitbrain:godot-4.x Feb 16, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants