Merge branch 'master' into blender2.8
[blender.git] / intern / cycles / blender / blender_shader.cpp
index cc2a6824190181a491e369b5139a9f350bd38e85..15d633b5c9ae5f3d441d6bbb86ce9141010d5398 100644 (file)
@@ -811,6 +811,19 @@ static ShaderNode *add_node(Scene *scene,
                get_tex_mapping(&sky->tex_mapping, b_texture_mapping);
                node = sky;
        }
+       else if(b_node.is_a(&RNA_ShaderNodeTexIES)) {
+               BL::ShaderNodeTexIES b_ies_node(b_node);
+               IESLightNode *ies = new IESLightNode();
+               switch(b_ies_node.mode()) {
+                       case BL::ShaderNodeTexIES::mode_EXTERNAL:
+                               ies->filename = blender_absolute_path(b_data, b_ntree, b_ies_node.filepath());
+                               break;
+                       case BL::ShaderNodeTexIES::mode_INTERNAL:
+                               ies->ies = get_text_datablock_content(b_ies_node.ies().ptr);
+                               break;
+               }
+               node = ies;
+       }
        else if(b_node.is_a(&RNA_ShaderNodeNormalMap)) {
                BL::ShaderNodeNormalMap b_normal_map_node(b_node);
                NormalMapNode *nmap = new NormalMapNode();