You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Merge pull request #32027 from lupoDharkael/group-order
Preserve group order in scene files
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user