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

AnimationPlayer - New bezier keys don't use current value for some variant types #19448

Closed
sketchyfun opened this issue Jun 8, 2018 · 1 comment

Comments

@sketchyfun
Copy link
Contributor

Godot version:
Current master

Issue description:
When you add a new bezier key for a float value, it will insert the key with the current value of that float property.
However, if you add a new bezier key for a Vector2, Vector3, or I guess anything that uses a '.' at the end of the property path (i.e position.x) then the value of the key always ends up being 0

I looked into the code and it looks like it's unable to resolve the property path of properties with '.x' etc on the end, so it ends up being NIL and thus 0

Steps to reproduce:
Add Sprite to scene, set its position to something other than 0,0
Add Animation player
Add Bezier track for sprite's position
Add new key for x
Notice how the key value is 0, even though the sprites X position is not 0

Minimal reproduction project:

@sketchyfun sketchyfun changed the title AnimationPlayer - New bezier keys don't use current value for some variants AnimationPlayer - New bezier keys don't use current value for some variant types Jun 8, 2018
@akien-mga akien-mga added this to the 3.1 milestone Jun 8, 2018
@reduz
Copy link
Member

reduz commented Jun 8, 2018

@bojidar-bg I think this maaay be yours

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

No branches or pull requests

3 participants