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

Misleading description for Animation::copy_track #8255

Closed
poohcom1 opened this issue Oct 16, 2023 · 0 comments · Fixed by godotengine/godot#83441
Closed

Misleading description for Animation::copy_track #8255

poohcom1 opened this issue Oct 16, 2023 · 0 comments · Fixed by godotengine/godot#83441
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository bug

Comments

@poohcom1
Copy link

poohcom1 commented Oct 16, 2023

Your Godot version:

4.2dev6

Issue description:

The copy_track method from Animation suggests that the method will copy the track from the parameter to_animation to the base object:

Adds a new track that is a copy of the given track from to_animation.

However, the source code shows that it's the other way around; it copies a track from the base object to to_animation:

https://github.com/godotengine/godot/blob/1ab77f410e5a21dbedb019cdbf723470459e5dbe/scene/resources/animation.cpp#L3795-L3813

URL to the documentation page:

https://docs.godotengine.org/en/latest/classes/class_animation.html#class-animation-method-copy-track

@poohcom1 poohcom1 added the bug label Oct 16, 2023
@Piralein Piralein added the area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository label Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants