Invert Color Cycles Node
[blender.git] / intern / cycles / blender / blender_shader.cpp
index 43359bf5352968e1fc6c40e74802bd1ff4d24a47..930ac1d495aaca557f194709b94eb4a37000eb17 100644 (file)
@@ -130,7 +130,6 @@ static ShaderNode *add_node(BL::BlendData b_data, ShaderGraph *graph, BL::Node *
                case BL::ShaderNode::type_CURVE_RGB: break;
                case BL::ShaderNode::type_CURVE_VEC: break;
                case BL::ShaderNode::type_GEOMETRY: break;
-               case BL::ShaderNode::type_INVERT: break;
                case BL::ShaderNode::type_MATERIAL: break;
                case BL::ShaderNode::type_MATERIAL_EXT: break;
                case BL::ShaderNode::type_NORMAL: break;
@@ -158,6 +157,10 @@ static ShaderNode *add_node(BL::BlendData b_data, ShaderGraph *graph, BL::Node *
                        node = new CameraNode();
                        break;
                }
+               case BL::ShaderNode::type_INVERT: {
+                       node = new InvertNode();
+                       break;
+               }
                case BL::ShaderNode::type_MIX_RGB: {
                        BL::ShaderNodeMixRGB b_mix_node(b_node);
                        MixNode *mix = new MixNode();