Fallback to parent class icon by default for gdextension
This commit is contained in:
@ -75,7 +75,7 @@ void ConnectionInfoDialog::popup_connections(const String &p_method, const Vecto
|
||||
TreeItem *node_item = tree->create_item(root);
|
||||
|
||||
node_item->set_text(0, Object::cast_to<Node>(connection.signal.get_object())->get_name());
|
||||
node_item->set_icon(0, EditorNode::get_singleton()->get_object_icon(connection.signal.get_object(), "Node"));
|
||||
node_item->set_icon(0, EditorNode::get_singleton()->get_object_icon(connection.signal.get_object()));
|
||||
node_item->set_selectable(0, false);
|
||||
node_item->set_editable(0, false);
|
||||
|
||||
@ -86,7 +86,7 @@ void ConnectionInfoDialog::popup_connections(const String &p_method, const Vecto
|
||||
node_item->set_editable(1, false);
|
||||
|
||||
node_item->set_text(2, Object::cast_to<Node>(connection.callable.get_object())->get_name());
|
||||
node_item->set_icon(2, EditorNode::get_singleton()->get_object_icon(connection.callable.get_object(), "Node"));
|
||||
node_item->set_icon(2, EditorNode::get_singleton()->get_object_icon(connection.callable.get_object()));
|
||||
node_item->set_selectable(2, false);
|
||||
node_item->set_editable(2, false);
|
||||
}
|
||||
|
||||
@ -89,7 +89,7 @@ String TextEditor::get_name() {
|
||||
}
|
||||
|
||||
Ref<Texture2D> TextEditor::get_theme_icon() {
|
||||
return EditorNode::get_singleton()->get_object_icon(edited_res.ptr(), "TextFile");
|
||||
return EditorNode::get_singleton()->get_object_icon(edited_res.ptr());
|
||||
}
|
||||
|
||||
Ref<Resource> TextEditor::get_edited_resource() const {
|
||||
|
||||
Reference in New Issue
Block a user