Don't display empty Class Properties in feature profile
This commit is contained in:
parent
6f425242dc
commit
d9d12cd352
|
@ -592,7 +592,15 @@ void EditorFeatureProfileManager::_class_list_item_selected() {
|
||||||
List<PropertyInfo> props;
|
List<PropertyInfo> props;
|
||||||
ClassDB::get_property_list(class_name, &props, true);
|
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);
|
TreeItem *properties = property_list->create_item(root);
|
||||||
properties->set_text(0, TTR("Class Properties:"));
|
properties->set_text(0, TTR("Class Properties:"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue