Skip to content

Commit

Permalink
Merge pull request #84127 from quirkylemon/get-type-variations
Browse files Browse the repository at this point in the history
Include empty type variations in `Theme::get_type_list`
  • Loading branch information
akien-mga committed Oct 30, 2023
2 parents befc5a9 + b397033 commit bb997d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scene/resources/theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit bb997d7

Please sign in to comment.