diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-09-23 09:24:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 09:24:56 +0200 |
commit | cf1e914897e12c79adf5a6ca44fa69d07118f62c (patch) | |
tree | 1213b65f3d8a37fd8fce5f54673e5a9591788c3f /scene/resources/resource_format_text.cpp | |
parent | 5ffae0d299aa799c7787e01f3cfe5e377b78a411 (diff) | |
parent | d6269e1bc08aed303f5c18d5abf6ddc93cdda6d7 (diff) |
Merge pull request #32027 from lupoDharkael/group-order
Preserve group order in scene files
Diffstat (limited to 'scene/resources/resource_format_text.cpp')
-rw-r--r-- | scene/resources/resource_format_text.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/resource_format_text.cpp b/scene/resources/resource_format_text.cpp index cd229732ba..1c41f30a94 100644 --- a/scene/resources/resource_format_text.cpp +++ b/scene/resources/resource_format_text.cpp @@ -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"; |