forked from bartvdbraak/blender
Fix for bug reported by Thomas Dinges on IRC: OSL script node was not initializing the data_type variable for shader sockets and so tried to set a non-existing float RNA property, leading to failed assert.
This commit is contained in:
parent
0440d77dbc
commit
8843eb9063
@ -258,6 +258,7 @@ static PyObject *osl_update_node_func(PyObject *self, PyObject *args)
|
||||
|
||||
if(param->isclosure) {
|
||||
socket_type = "NodeSocketShader";
|
||||
data_type = BL::NodeSocket::type_SHADER;
|
||||
}
|
||||
else if(param->type.vecsemantics == TypeDesc::COLOR) {
|
||||
socket_type = "NodeSocketColor";
|
||||
|
Loading…
Reference in New Issue
Block a user