Merge pull request #84127 from quirkylemon/get-type-variations

Include empty type variations in `Theme::get_type_list`
This commit is contained in:
Rémi Verschelde 2023-10-30 23:18:58 +01:00
commit bb997d787d
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1240,6 +1240,11 @@ void Theme::get_type_list(List<StringName> *p_list) const {
types.insert(E.key);
}
// Variations.
for (const KeyValue<StringName, StringName> &E : variation_map) {
types.insert(E.key);
}
for (const StringName &E : types) {
p_list->push_back(E);
}