-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Error message from AnimationTree with root bone #76330
Comments
Attach the MRP, please. |
I encountered the same issue with both versions 4.1 and 4.2, where any operation on the node would result in an error once the root motion is set. |
Please provide a minimal reproduction project:
|
AnimationTree and AnimationPlayer now derive from AnimationMixer since this issue was created. In spite of multiple PR attempts at fixing it, the issue is still present in both AT & AP in Godot 4.2.2. I have animated characters in a scene. If I reparent any unrelated object in the tree, say a rock, the animated characters report these errors, even though they have not been touched.
The animations and animationplayer/tree work fine. ForestWalk is a game level. dorian_mesh_v8_0.tscn and npc_female.tscn are character scenes. The AnimationPlayer root node, root_motion_track, and cc_base_body/skeleton are all connected properly, the scene inherits from a glb, imported from blender. import file
I debugged https://github.com/godotengine/godot/blob/4.2/editor/scene_tree_dock.cpp#L1691
I think the problem is that this character is imported with Armature and AnimationPlayer at the same level, but here AnimationPlayer is attempting to If I set AnimationPlayer root_motion_track to null, it removes the error. However this also breaks my root motion characters. Animations will play but will break player controllers that move based on RM. cc: @KoBeWi |
Godot version
4.0.2
System information
Windows 11
Issue description
I'm randomly getting error messages, usually when saving the project but also at other times, that say the following:
Found invalid node path 'Armature/Skeleton3D:mixamorig10_Root' on node 'PlayerTest/Player/AnimationTree'
The node has the bone listed above as its root_motion_track. The AnimationTree is working fine, including root motion.
The message seems to come from the function
SceneTreeDock::_update_node_path
. It looks like it's trying to treat a bone path as a node?Steps to reproduce
Create scene with Skeleton3D, AnimationPlayer and AnimationTree.
Set the AnimationTree's player to the AnimationPlayer.
Create a bone in the skeleton and set it as the AnimationTree root_motion_track.
The message usually seems to happen when saving files in the editor.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: