[Bf-blender-cvs] [ddee26288d4] temp-nodes-group-declarations: Simplify declaration functions for "extend" socket
Hans Goudey
noreply at git.blender.org
Thu Dec 22 20:42:44 CET 2022
Commit: ddee26288d4017dbee7d9fb5b4472d91888e1b11
Author: Hans Goudey
Date: Thu Dec 22 14:42:33 2022 -0500
Branches: temp-nodes-group-declarations
https://developer.blender.org/rBddee26288d4017dbee7d9fb5b4472d91888e1b11
Simplify declaration functions for "extend" socket
===================================================================
M source/blender/nodes/intern/node_socket_declarations.cc
===================================================================
diff --git a/source/blender/nodes/intern/node_socket_declarations.cc b/source/blender/nodes/intern/node_socket_declarations.cc
index e89083498cc..321e3a1c499 100644
--- a/source/blender/nodes/intern/node_socket_declarations.cc
+++ b/source/blender/nodes/intern/node_socket_declarations.cc
@@ -505,20 +505,19 @@ bool Shader::can_connect(const bNodeSocket &socket) const
/** \} */
/* -------------------------------------------------------------------- */
-/** \name #IDSocketDeclaration
+/** \name #Extend
* \{ */
bNodeSocket &Extend::build(bNodeTree &ntree, bNode &node) const
{
bNodeSocket &socket = *nodeAddSocket(
&ntree, &node, in_out_, "NodeSocketVirtual", identifier_.c_str(), name_.c_str());
- this->set_common_flags(socket);
return socket;
}
bool Extend::matches(const bNodeSocket &socket) const
{
- if (!this->matches_common_data(socket)) {
+ if (socket.identifier != identifier_) {
return false;
}
return true;
@@ -533,7 +532,6 @@ bNodeSocket &Extend::update_or_build(bNodeTree & /*ntree*/,
bNode & /*node*/,
bNodeSocket &socket) const
{
- this->set_common_flags(socket);
return socket;
}
More information about the Bf-blender-cvs
mailing list