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

gui.animate doesn't set value if duration = 0 and delay > 0 #5791

Closed
aglitchman opened this issue May 4, 2021 · 3 comments · Fixed by #6216
Closed

gui.animate doesn't set value if duration = 0 and delay > 0 #5791

aglitchman opened this issue May 4, 2021 · 3 comments · Fixed by #6216
Labels
bug Something is not working as expected good first issue? The issue might be good for beginners wanting to work on the engine or the editor gui Issues related to gui components

Comments

@aglitchman
Copy link
Contributor

Describe the bug (REQUIRED)
gui.animate doesn't set target value if duration = 0 and delay > 0.

To Reproduce (REQUIRED)
I attached a re-pro project.

Expected behavior (REQUIRED)
gui.animate should behave as go.animate.

Defold version (REQUIRED):

  • Version 1.2.181/1.2.182

Platforms (REQUIRED):

  • Platforms: Any

gui_animate_bug1.zip

@aglitchman aglitchman added the bug Something is not working as expected label May 4, 2021
@britzl britzl added the gui Issues related to gui components label May 5, 2021
@JCash
Copy link
Contributor

JCash commented May 5, 2021

Tbh, I think we should discuss if this is a bug or not.
Does it work if delay == 0 ?

The requested behavior is already available when using a timercallback.

@aglitchman
Copy link
Contributor Author

Could you please run the example project? It contains two identical animations but they are implemented via go.animate and gui.animate. You'll see the difference. go.animate runs it as it should be. I believe that gui.animate should do the same.

@britzl
Copy link
Contributor

britzl commented May 6, 2021

I think I fixed something similar a while ago... hmm, no, related but not the same:

#5198

It is kind of a weird situation with running animations with a 0 duration, but it should be handled I think. I would categorise this as a bug.

@britzl britzl added the good first issue? The issue might be good for beginners wanting to work on the engine or the editor label May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected good first issue? The issue might be good for beginners wanting to work on the engine or the editor gui Issues related to gui components
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants