mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 12:43:43 +00:00
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
@ -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 New Issue
Block a user