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:
Lukas Toenne 2013-05-01 13:28:44 +00:00
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";