mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Polish & fix editor help cache generation
- Isolated the generation of extensions's docs. They're now not cached and refreshed as needed. - Removed superfluous sorting of the class list. - Removed some superfluous/unused elements. - Renamed some items for clarity.
This commit is contained in:
@@ -98,9 +98,24 @@ void ClassDB::get_class_list(List<StringName> *p_classes) {
|
||||
p_classes->push_back(E.key);
|
||||
}
|
||||
|
||||
p_classes->sort();
|
||||
p_classes->sort_custom<StringName::AlphCompare>();
|
||||
}
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
void ClassDB::get_extensions_class_list(List<StringName> *p_classes) {
|
||||
OBJTYPE_RLOCK;
|
||||
|
||||
for (const KeyValue<StringName, ClassInfo> &E : classes) {
|
||||
if (E.value.api != API_EXTENSION && E.value.api != API_EDITOR_EXTENSION) {
|
||||
continue;
|
||||
}
|
||||
p_classes->push_back(E.key);
|
||||
}
|
||||
|
||||
p_classes->sort_custom<StringName::AlphCompare>();
|
||||
}
|
||||
#endif
|
||||
|
||||
void ClassDB::get_inheriters_from_class(const StringName &p_class, List<StringName> *p_classes) {
|
||||
OBJTYPE_RLOCK;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user