summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlupoDharkael <izhe@hotmail.es>2019-09-07 15:54:53 +0200
committerlupoDharkael <izhe@hotmail.es>2019-09-07 15:54:53 +0200
commitd6269e1bc08aed303f5c18d5abf6ddc93cdda6d7 (patch)
treec9d8fdd4813a598e61638f8385ebba401434168f
parent038d19988da3ca8654f172ec53e8feb8cea12173 (diff)
Preserve group order in scene files
-rw-r--r--scene/resources/resource_format_text.cpp1
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";