Cycles / Sky Texture:
[blender.git] / intern / cycles / blender / blender_shader.cpp
index b10c7847e211d43241a4cf43207a5fde3856630b..5dfbd97366a794cb1f3cef6d95a7bb1cf9acb679 100644 (file)
@@ -632,8 +632,10 @@ static ShaderNode *add_node(Scene *scene, BL::BlendData b_data, BL::Scene b_scen
        else if (b_node.is_a(&RNA_ShaderNodeTexSky)) {
                BL::ShaderNodeTexSky b_sky_node(b_node);
                SkyTextureNode *sky = new SkyTextureNode();
+               sky->type = SkyTextureNode::type_enum[(int)b_sky_node.sky_type()];
                sky->sun_direction = get_float3(b_sky_node.sun_direction());
                sky->turbidity = b_sky_node.turbidity();
+               sky->ground_albedo = b_sky_node.ground_albedo();
                get_tex_mapping(&sky->tex_mapping, b_sky_node.texture_mapping());
                node = sky;
        }