Preserve group order in scene files

This commit is contained in:
lupoDharkael 2019-09-07 15:54:53 +02:00
parent 038d19988d
commit d6269e1bc0
1 changed files with 1 additions and 0 deletions

View File

@ -1713,6 +1713,7 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const RES &p_r
} }
if (groups.size()) { if (groups.size()) {
groups.sort_custom<StringName::AlphCompare>();
String sgroups = " groups=[\n"; String sgroups = " groups=[\n";
for (int j = 0; j < groups.size(); j++) { for (int j = 0; j < groups.size(); j++) {
sgroups += "\"" + String(groups[j]).c_escape() + "\",\n"; sgroups += "\"" + String(groups[j]).c_escape() + "\",\n";