Fix: Node Wrangler: error previewing input node with virtual socket
commitcd5ba93be6f1d550b7bb98d094707b812677d7c0
authorDamien Picard <dam.pic@free.fr>
Sun, 14 Jan 2024 11:50:58 +0000 (14 12:50 +0100)
committerDamien Picard <dam.pic@free.fr>
Sat, 3 Feb 2024 13:59:12 +0000 (3 14:59 +0100)
tree16c191d562a232d37d7043eb17274bb071867944
parent3f5af897086b23a5de15879b0f0f8414e6513e92
Fix: Node Wrangler: error previewing input node with virtual socket

When searching for the socket to preview, we need to consider the case
where there is one socket available, but we cannot preview it, such as
with group input nodes' virtual socket.

The check was already there for Geometry Nodes, and this commit adds
it for shading nodes.
node_wrangler/operators.py