summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_utility_functions.cpp
diff options
context:
space:
mode:
author31 <31eee384@gmail.com>2024-01-14 10:29:02 -0800
committer31 <31eee384@gmail.com>2024-01-14 10:29:02 -0800
commit698c67d540cddf38c9ad7e73e99721c245b93588 (patch)
treeaba2b4f1514618fb6b45613b37aac16ea1374081 /modules/gdscript/gdscript_utility_functions.cpp
parent26b1fd0d842fa3c2f090ead47e8ea7cd2d6515e1 (diff)
downloadredot-engine-698c67d540cddf38c9ad7e73e99721c245b93588.tar.gz
Include animation.length in Animation example
The length of an Animation isn't automatically set by adding keys, and it must be set manually. The existing example only has keys up to 0.5s, so the default value of 1.0s may be acceptable. However, this results in unexpected behavior for anyone who makes an animation longer than 1.0s. Include animation.length in the example because it's important. Also, increase the key position to 2.0s so it won't be confusing that the assignment is somewhat redundant.
Diffstat (limited to 'modules/gdscript/gdscript_utility_functions.cpp')
0 files changed, 0 insertions, 0 deletions