forked from bartvdbraak/blender
Cycles: fix incorrect asserts in node socket set functions
This commit is contained in:
parent
3fae33b22c
commit
70634ba438
@ -98,7 +98,7 @@ void Node::set(const SocketType &input, float value)
|
||||
|
||||
void Node::set(const SocketType &input, float2 value)
|
||||
{
|
||||
assert(input.type == SocketType::FLOAT);
|
||||
assert(input.type == SocketType::POINT2);
|
||||
set_if_different(input, value);
|
||||
}
|
||||
|
||||
@ -165,7 +165,7 @@ void Node::set(const SocketType &input, array<float> &value)
|
||||
|
||||
void Node::set(const SocketType &input, array<float2> &value)
|
||||
{
|
||||
assert(input.type == SocketType::FLOAT_ARRAY);
|
||||
assert(input.type == SocketType::POINT2_ARRAY);
|
||||
set_if_different(input, value);
|
||||
}
|
||||
|
||||
@ -189,7 +189,7 @@ void Node::set(const SocketType &input, array<Transform> &value)
|
||||
|
||||
void Node::set(const SocketType &input, array<Node *> &value)
|
||||
{
|
||||
assert(input.type == SocketType::TRANSFORM_ARRAY);
|
||||
assert(input.type == SocketType::NODE_ARRAY);
|
||||
set_if_different(input, value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user