Fix Cycles debug build assert on some platforms, tighten checks to avoid this in the future.
This commit is contained in:
@@ -82,6 +82,12 @@ void Node::set(const SocketType& input, int value)
|
||||
get_socket_value<int>(this, input) = value;
|
||||
}
|
||||
|
||||
void Node::set(const SocketType& input, uint value)
|
||||
{
|
||||
assert(input.type == SocketType::UINT);
|
||||
get_socket_value<uint>(this, input) = value;
|
||||
}
|
||||
|
||||
void Node::set(const SocketType& input, float value)
|
||||
{
|
||||
assert(input.type == SocketType::FLOAT);
|
||||
@@ -198,6 +204,12 @@ int Node::get_int(const SocketType& input) const
|
||||
return get_socket_value<int>(this, input);
|
||||
}
|
||||
|
||||
uint Node::get_uint(const SocketType& input) const
|
||||
{
|
||||
assert(input.type == SocketType::UINT);
|
||||
return get_socket_value<uint>(this, input);
|
||||
}
|
||||
|
||||
float Node::get_float(const SocketType& input) const
|
||||
{
|
||||
assert(input.type == SocketType::FLOAT);
|
||||
|
||||
Reference in New Issue
Block a user