Error when loading project (use call_deferred() instead)

Godot Version

v4.1.3.stable.official [f06b6836a]

Question

Hello, I am trying to implement an Animation Tree in my Player Scene but it has been leaving me quite stumped. Every time I load my project, I get this error message twice:

This function in this node (/root/@EditorNode@17637/@Control@697/@Panel@698/@VBoxContainer@706/@HSplitContainer@709/@HSplitContainer@717/@HSplitContainer@725/@VBoxContainer@726/@VSplitContainer@728/@PanelContainer@7498/@VBoxContainer@7499/@AnimationTreeEditor@13069) can only be accessed from either the main thread or a thread group. Use call_deferred() instead.

My project does not crash when I run it despite this. My player scene has an AnimatedSprite2D node, an AnimationPlayer node and an AnimationTree node. I heavily suspect that it has to do something with the fact that I am using an AnimatedSprite2D node and I have animation nodes in my animation tree, since the number of errors I get are tied to how many different animations node there are in my tree and I use AnimatedSprite2D’s flip_h to flip my character’s sprite the correct way, which is updated in the same function I use to update my conditions for my Animated Tree. It says to “use call_deferred() instead”, but I have no idea what that implies or where I would write it in my player script :frowning:

This is currently what my AnimationTree looks like. It’s pretty barren lol because i want to learn how to organize trees better before putting more animations, but it is just 2 animations (not blend trees or state machines) connected to each other with their respective conditions.

In the editor, you mean? Or does it complain when you run the game?

I imagine @AnimationTreeEditor@13069 is a part of the editor and it is unrelated to your project. They might just have screwed somethin up in the release. If it breaks nothing just ignore it.

Yeah, I get this error message in the editor when I open the project or when I specifically click on the animation tree node in my scene