Skip to content

Commit

Permalink
Added variations to get_type_list()
Browse files Browse the repository at this point in the history
  • Loading branch information
quirkylemon committed Oct 30, 2023
1 parent 9144457 commit b397033
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 b397033

Please sign in to comment.