-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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 negative values of tracks are rounded inconsistently for both update modes #84106
Comments
Using the current master will give this error when open the animation tab:
If I manually change So the real bug here is godot cannot find icon2 based on it's saved path under root node, which seems strange. |
Oh, that might've been my fault then. I moved the nodes after creating the track to better represent my initial projects tree structure. Which means I haven't managed to actually recreate the issue I see in my project. All other properties are being updated (like region_rect, position etc.) but not the z_index. |
This comment was marked as outdated.
This comment was marked as outdated.
And now I noticed that if I set the z_index in the MRP to -2, it is actually being set to -1. It always seems to be off by 1 for negative values. Edit: The continuous update mode seems now round values differently compared to older versions. Using the discrete mode works as expected. Updating the issues title and description. |
Unsure how this should be approached, the continuous mode doesn't seem logical for an |
This definitely needs more testing. After changing the update mode to discrete for every single track, the right arm now does work, but the left arm no longer does. The rounding seems to be very inconsistent for any update mode. For some nodes it works, for others it does not, even with same values. The right arm animation player only works with discrete update mode, the left arm only works with continuous. Will try to replicate this in the MRP and update it and the title again. |
Part of #83401 (CC @TokageItLab). |
Here's the MRP, it behaves a little different than in my main project, which means it might behave different for you as well. Playing the 'walk_right' animation in the ArmLPlayer AnimationPlayer node:
Playing the 'walk_left' animation in the ArmRPlayer AnimationPlayer node:
Deleting some tracks from the animation player changes this behavior as well, which is why I had to leave all animations inside the project. |
Godot version
v4.2.beta3.official [e8d57af]
System information
Godot v4.2.beta3 - Windows 10.0.19045 - GLES3 (Compatibility) - NVIDIA GeForce GTX 1060 6GB (NVIDIA; 31.0.15.3699) - AMD Ryzen 5 2600X Six-Core Processor (12 Threads)
Issue description
After updating to 4.2.beta3, some animations in my project using the z_index broke. The z_index is no longer set on nodes if it is negative when the animation is playing.
Further investigation showed that compared to the version I previously used (4.2.dev5), the continuous update mode now rounds values differently, resulting in negative values always being off by 1.
Steps to reproduce
I don't have steps to reproduce it from an empty project, as the issue is inconsistent. Animations being added/removed changes the behavior sometimes, which is why these steps assume you are using the MRP below.
Minimal reproduction project
AnimPlayerMRP.zip
Play the animation of the AnimationPlayer, the z_index value of the Sprite does not change.
The text was updated successfully, but these errors were encountered: