Browse Source

Added variations to get_type_list()

QuirkyLemon 1 year ago
parent
commit
b3970336ce
1 changed files with 5 additions and 0 deletions
  1. 5 0
      scene/resources/theme.cpp

+ 5 - 0
scene/resources/theme.cpp

@@ -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);
 	}