You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use animation player and add new track call method track and then insert key inside this track. Methods listed from a script are placed in seemingly random order rather than in order they appear in the scrip
Steps to reproduce:
Described above
Minimal reproduction project:
applicable in any project.
The text was updated successfully, but these errors were encountered:
I did a bit of digging around for this and the list order behaviour is as follows:
Methods created before the previous reopening of the editor are in the script order
All new methods are in the order they were created in, after the old methods
I understand that this would cause inconsistencies.
I could easily sort alphabetically the method list, so that it stays constant through reopenings of the editor. Same could be done for the base classes. Any objections?
Sl3dge78
added a commit
to Sl3dge78/godot
that referenced
this issue
Jun 17, 2020
If we can't mirror what source file order is alphabetical ordering is better than random order we have now. However ideally it would make more sense to try to mirror what source file order is people put functions in logical places for them.
The method list is updated at compile time and only the changes get added with every compile (which explains the behaviour)
Using the source file's order would require compiling the whole script with every change or add some complex sorting through the parser which I wouldn't be confident enough doing.
Alphabetical makes more sense to me and my major use case is to use the search box so it's doesn't matter much imo.
Godot version:
3.2.1
OS/device including version:
Win 10
Issue description:
When you use animation player and add new track call method track and then insert key inside this track. Methods listed from a script are placed in seemingly random order rather than in order they appear in the scrip
Steps to reproduce:
Described above
Minimal reproduction project:
applicable in any project.
The text was updated successfully, but these errors were encountered: