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

Reparenting an AnimationPlayer node to a higher node results in track information getting lost #83908

Closed
gomaproi opened this issue Oct 24, 2023 · 1 comment · Fixed by #83934

Comments

@gomaproi
Copy link

gomaproi commented Oct 24, 2023

Godot version

v4.2.beta3.mono.official [e8d57af]

System information

Godot v4.2.beta3.mono - Windows 10.0.23570 - Vulkan (Forward+) - integrated AMD Radeon(TM) Graphics (Advanced Micro Devices, Inc.; 31.0.21029.1006) - AMD Ryzen 5 4600G with Radeon Graphics (12 Threads)

Issue description

When reparenting an AnimationPlayer node in the editor to a higher node, property tracks (unsure if the same happens in other track types) that was added to it will lose their information (including property name and keys, but not key positions). Can be undone with Ctrl+Z, but not by placing it back after changing parents.

GodotBug.mp4

Steps to reproduce

  1. Create a new scene with a Node2D root;
  2. Add a child Node2D to the root;
  3. Add a child AnimationPlayer to the child Node2D;
  4. Create a new animation in the AnimationPlayer node with any name;
  5. Add a property track, pick the child Node2D and select any property (example: the modulate property);
  6. Create a key in the newly created property track;
  7. Reparent AnimationPlayer to the root Node2D;

Minimal reproduction project

N/A

@KoBeWi
Copy link
Member

KoBeWi commented Oct 25, 2023

Probably regression from #83209
Animation paths are getting updated by scene tree dock., which ignores subpaths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants