Fix #110210: Hide Value option doesn't work on color sockets
Regression caused by7026096099. Original error introduced in46fff97604. Name hadling isn't problem of a declaration matching functions. Pull Request: https://projects.blender.org/blender/blender/pulls/110225
This commit is contained in:
committed by
Hans Goudey
parent
6b9da41221
commit
6a03f3a575
@@ -347,12 +347,7 @@ bNodeSocket &Color::build(bNodeTree &ntree, bNode &node) const
|
||||
bool Color::matches(const bNodeSocket &socket) const
|
||||
{
|
||||
if (!this->matches_common_data(socket)) {
|
||||
if (socket.name != this->name) {
|
||||
return false;
|
||||
}
|
||||
if (socket.identifier != this->identifier) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (socket.type != SOCK_RGBA) {
|
||||
return false;
|
||||
@@ -401,12 +396,7 @@ bNodeSocket &Rotation::build(bNodeTree &ntree, bNode &node) const
|
||||
bool Rotation::matches(const bNodeSocket &socket) const
|
||||
{
|
||||
if (!this->matches_common_data(socket)) {
|
||||
if (socket.name != this->name) {
|
||||
return false;
|
||||
}
|
||||
if (socket.identifier != this->identifier) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (socket.type != SOCK_ROTATION) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user