Merge pull request #57749 from timothyqiu/feature-class-props

This commit is contained in:
Rémi Verschelde 2022-02-07 13:20:15 +01:00 committed by GitHub
commit 88aea70a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -592,7 +592,15 @@ void EditorFeatureProfileManager::_class_list_item_selected() {
List<PropertyInfo> props;
ClassDB::get_property_list(class_name, &props, true);
if (props.size() > 0) {
bool has_editor_props = false;
for (const PropertyInfo &E : props) {
if (E.usage & PROPERTY_USAGE_EDITOR) {
has_editor_props = true;
break;
}
}
if (has_editor_props) {
TreeItem *properties = property_list->create_item(root);
properties->set_text(0, TTR("Class Properties:"));