Closed
Description
Godot version
4.2 beta3
System information
Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
When you reparent AnimationPlayer, this error is written in the output:
Node not found: "../Node2D" (relative to "/root/@EditorNode@17151/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9493/@VSplitContainer@9312/@HSplitContainer@9314/@HSplitContainer@9316/@Control@9317/@SubViewportContainer@9318/@SubViewport@9319/2D/Node2D/AnimationPlayer")
It comes from
godot/editor/scene_tree_dock.cpp
Line 1584 in 06d5189
Seems like the code is called at a wrong time. The paths are updated correctly though.
EDIT:
No the paths are not updated correctly. If you move root node, every animation tracks for nodes that aren't is children will be broken.
Steps to reproduce
- Create a new scene with a Node2D root;
- Add a child Node2D to the root;
- Add a child AnimationPlayer to the child Node2D;
- Create a new animation in the AnimationPlayer node with any name;
- Add a property track, pick the child Node2D and select any property (example: the modulate property);
- Create a key in the newly created property track;
- Reparent AnimationPlayer to the root Node2D;
Minimal reproduction project
N/A
Metadata
Metadata
Assignees
Type
Projects
Status
No status