Merge branch 'master' into blender2.8
[blender.git] / intern / cycles / blender / blender_shader.cpp
index b3dfe1f6800b5fadadfe0e00909bf0e91324f7c1..62c160ca50391fbdba4a7451a6b3a4e003670db1 100644 (file)
@@ -517,6 +517,12 @@ static ShaderNode *add_node(Scene *scene,
                }
                node = hair;
        }
+       else if(b_node.is_a(&RNA_ShaderNodeBsdfHairPrincipled)) {
+               BL::ShaderNodeBsdfHairPrincipled b_principled_hair_node(b_node);
+               PrincipledHairBsdfNode *principled_hair = new PrincipledHairBsdfNode();
+               principled_hair->parametrization = (NodePrincipledHairParametrization) get_enum(b_principled_hair_node.ptr, "parametrization", NODE_PRINCIPLED_HAIR_NUM, NODE_PRINCIPLED_HAIR_REFLECTANCE);
+               node = principled_hair;
+       }
        else if(b_node.is_a(&RNA_ShaderNodeBsdfPrincipled)) {
                BL::ShaderNodeBsdfPrincipled b_principled_node(b_node);
                PrincipledBsdfNode *principled = new PrincipledBsdfNode();