Fix T99949: Crash when last input from File Output node is deleted
Regression since e4278b72bb.
Need to check inputs exist prior to requesting first input as it
might not exist.
This commit is contained in:
@@ -37,6 +37,10 @@ void OutputFileNode::map_input_sockets(NodeConverter &converter,
|
||||
|
||||
void OutputFileNode::add_preview_to_first_linked_input(NodeConverter &converter) const
|
||||
{
|
||||
if (get_input_sockets().is_empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
NodeInput *first_socket = this->get_input_socket(0);
|
||||
if (first_socket->is_linked()) {
|
||||
converter.add_node_input_preview(first_socket);
|
||||
|
||||
Reference in New Issue
Block a user