Merge branch 'master' into blender2.8
[blender.git] / intern / cycles / blender / blender_python.cpp
index ba9d6181e1c33a9d17160eee30cf08c0e53e274b..768c1c589b60760fa5976a0921c159db93045766 100644 (file)
@@ -504,7 +504,7 @@ static PyObject *osl_update_node_func(PyObject * /*self*/, PyObject *args)
                                socket_type = "NodeSocketString";
                                data_type = BL::NodeSocket::type_STRING;
                                if(param->validdefault)
-                                       default_string = param->sdefault[0];
+                                       default_string = param->sdefault[0].string();
                        }
                        else
                                continue;