Preserve group order in scene files
This commit is contained in:
parent
038d19988d
commit
d6269e1bc0
|
@ -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 New Issue