Merge pull request #32027 from lupoDharkael/group-order
Preserve group order in scene files
This commit is contained in:
commit
cf1e914897
1 changed files with 1 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue