Skip to content

Animation Tree fakes default keyframes for non-keyframed values #59961

@jcarlosrc

Description

@jcarlosrc

Godot version

4.0 alpha 5 and alpha 6

System information

Windows 10

Issue description

Tracks that are not keyframed should not be animated. However, Animation Tree is using default values (at least for position and color) as they were keyframed values, causing animation issues.

In the videos: First, The expected behavior (Godot 4.0 Alpha 4 and all previous version): Sphere does not move because it is not keyframed in the one shot animation. Second, Alpha 5 and 6: the sphere moves to its default (0,0,0) position, however there is not keyframed at all at that position.

This issue happens also with color. To see it, make the Color Rect node visible and play the game. Transparency goes back to 0 causing scene not to be visible. This can not be an on-purpose behavior, because each animation should contain a track for every single node and position to behave properly, which does not make sense.

A4Behavior.mp4
A6Behavior.mp4

Steps to reproduce

Play the game with alpha 4 and alpha 6 versions. Pressing "Enter" activates the one shot animation, showing the bug.

Minimal reproduction project

BugReportAnimTreeAlpha6.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions