You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Merge pull request #56920 from pycbouh/docs-sort-class-properties
This commit is contained in:
@@ -350,7 +350,7 @@ void DocTools::generate(bool p_basic_types) {
|
|||||||
List<PropertyInfo> properties;
|
List<PropertyInfo> properties;
|
||||||
List<PropertyInfo> own_properties;
|
List<PropertyInfo> own_properties;
|
||||||
if (name == "ProjectSettings") {
|
if (name == "ProjectSettings") {
|
||||||
//special case for project settings, so settings can be documented
|
// Special case for project settings, so settings can be documented.
|
||||||
ProjectSettings::get_singleton()->get_property_list(&properties);
|
ProjectSettings::get_singleton()->get_property_list(&properties);
|
||||||
own_properties = properties;
|
own_properties = properties;
|
||||||
} else {
|
} else {
|
||||||
@@ -358,9 +358,12 @@ void DocTools::generate(bool p_basic_types) {
|
|||||||
ClassDB::get_property_list(name, &own_properties, true);
|
ClassDB::get_property_list(name, &own_properties, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
properties.sort();
|
||||||
|
own_properties.sort();
|
||||||
|
|
||||||
List<PropertyInfo>::Element *EO = own_properties.front();
|
List<PropertyInfo>::Element *EO = own_properties.front();
|
||||||
for (const PropertyInfo &E : properties) {
|
for (const PropertyInfo &E : properties) {
|
||||||
bool inherited = EO == nullptr;
|
bool inherited = true;
|
||||||
if (EO && EO->get() == E) {
|
if (EO && EO->get() == E) {
|
||||||
inherited = false;
|
inherited = false;
|
||||||
EO = EO->next();
|
EO = EO->next();
|
||||||
|
|||||||
Reference in New Issue
Block a user