nodegroup: check if an input is actually a passthrough

Fixes #2135
This commit is contained in:
itsmattkc
2023-02-22 12:50:56 -08:00
parent 8e2db520a7
commit 3bc53cef60
+4
View File
@@ -160,6 +160,10 @@ bool NodeGroup::GetInner(NodeInput *input)
{
if (NodeGroup *g = dynamic_cast<NodeGroup*>(input->node())) {
const NodeInput &passthrough = g->GetInputFromID(input->input());
if (!passthrough.IsValid()) {
return false;
}
input->set_node(passthrough.node());
input->set_input(passthrough.input());
return true;