Fix #109231: Python defined socket type switching broken #109298
|
@ -649,6 +649,9 @@ bool Custom::matches(const bNodeSocket &socket) const
|
|||
if (socket.type != SOCK_CUSTOM) {
|
||||
return false;
|
||||
}
|
||||
if (!STREQ(socket.typeinfo->idname, idname_)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -657,10 +660,12 @@ bool Custom::can_connect(const bNodeSocket &socket) const
|
|||
return sockets_can_connect(*this, socket) && STREQ(socket.idname, idname_);
|
||||
}
|
||||
|
||||
bNodeSocket &Custom::update_or_build(bNodeTree & /*ntree*/,
|
||||
bNode & /*node*/,
|
||||
bNodeSocket &socket) const
|
||||
bNodeSocket &Custom::update_or_build(bNodeTree &ntree, bNode &node, bNodeSocket &socket) const
|
||||
{
|
||||
if (!STREQ(socket.typeinfo->idname, idname_)) {
|
||||
return this->build(ntree, node);
|
||||
}
|
||||
this->set_common_flags(socket);
|
||||
return socket;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue