Sort variables in VisualScriptEditor
Sorts the script variables in alphabetical order to display them in VisualScriptEditor.
This commit is contained in:
parent
4dc8214831
commit
a95cc4eff3
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue