From a95cc4eff3977883f1aa7578258858c1bf368d64 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Thu, 24 Feb 2022 21:18:02 +0100 Subject: [PATCH] Sort variables in VisualScriptEditor Sorts the script variables in alphabetical order to display them in VisualScriptEditor. --- modules/visual_script/editor/visual_script_editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/visual_script/editor/visual_script_editor.cpp b/modules/visual_script/editor/visual_script_editor.cpp index ff4b6a1f4b2..813902b54ee 100644 --- a/modules/visual_script/editor/visual_script_editor.cpp +++ b/modules/visual_script/editor/visual_script_editor.cpp @@ -1102,6 +1102,7 @@ void VisualScriptEditor::_update_members() { List var_names; script->get_variable_list(&var_names); + var_names.sort_custom(); for (const StringName &E : var_names) { TreeItem *ti = members->create_item(variables);