Merge pull request #58510 from raulsntos/sort-visualscript-variables

This commit is contained in:
Rémi Verschelde 2022-02-25 09:46:36 +01:00 committed by GitHub
commit be52c5bf6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1102,6 +1102,7 @@ void VisualScriptEditor::_update_members() {
List<StringName> var_names;
script->get_variable_list(&var_names);
var_names.sort_custom<StringName::AlphCompare>();
for (const StringName &E : var_names) {
TreeItem *ti = members->create_item(variables);