Fix Cycles debug build assert on some platforms, tighten checks to avoid this in...
[blender.git] / intern / cycles / render / background.cpp
index 20536b74e87d8f8a45f37d3559c3d7d75cb13291..8d7d7b847fda8eead259b20dc6fff10a80db44ff 100644 (file)
@@ -32,12 +32,12 @@ NODE_DEFINE(Background)
 {
        NodeType* type = NodeType::add("background", create);
 
-       SOCKET_INT(ao_factor, "AO Factor", 0.0f);
+       SOCKET_FLOAT(ao_factor, "AO Factor", 0.0f);
        SOCKET_FLOAT(ao_distance, "AO Distance", FLT_MAX);
 
        SOCKET_BOOLEAN(use_shader, "Use Shader", true);
        SOCKET_BOOLEAN(use_ao, "Use AO", false);
-       SOCKET_INT(visibility, "Visibility", PATH_RAY_ALL_VISIBILITY);
+       SOCKET_UINT(visibility, "Visibility", PATH_RAY_ALL_VISIBILITY);
        SOCKET_BOOLEAN(transparent, "Transparent", false);
 
        SOCKET_NODE(shader, "Shader", &Shader::node_type);