Merge pull request #32027 from lupoDharkael/group-order

Preserve group order in scene files
This commit is contained in:
Rémi Verschelde 2019-09-23 09:24:56 +02:00 committed by GitHub
commit cf1e914897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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