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:
parent
cefd6140f3
commit
9644740230
Notes:
blender-bot
2023-02-14 00:13:36 +01:00
Referenced by issue #99949, Regression: Crash when last input from File Output node is deleted
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue