Use the gray color for all abstract classes
This commit is contained in:
@ -495,7 +495,7 @@ void EditorFeatureProfileManager::_profile_selected(int p_what) {
|
||||
void EditorFeatureProfileManager::_fill_classes_from(TreeItem *p_parent, const String &p_class, const String &p_selected) {
|
||||
TreeItem *class_item = class_list->create_item(p_parent);
|
||||
class_item->set_cell_mode(0, TreeItem::CELL_MODE_CHECK);
|
||||
class_item->set_icon(0, EditorNode::get_singleton()->get_class_icon(p_class, "Node"));
|
||||
class_item->set_icon(0, EditorNode::get_singleton()->get_class_icon(p_class));
|
||||
String text = p_class;
|
||||
|
||||
bool disabled = edited->is_class_disabled(p_class);
|
||||
@ -522,11 +522,11 @@ void EditorFeatureProfileManager::_fill_classes_from(TreeItem *p_parent, const S
|
||||
class_item->select(0);
|
||||
}
|
||||
if (disabled) {
|
||||
//class disabled, do nothing else (do not show further)
|
||||
// Class disabled, do nothing else (do not show further).
|
||||
return;
|
||||
}
|
||||
|
||||
class_item->set_checked(0, true); // if its not disabled, its checked
|
||||
class_item->set_checked(0, true); // If it's not disabled, it's checked.
|
||||
|
||||
List<StringName> child_classes;
|
||||
ClassDB::get_direct_inheriters_from_class(p_class, &child_classes);
|
||||
|
||||
Reference in New Issue
Block a user