Freestyle: new stroke modifiers
[blender.git] / source / blender / blenloader / intern / writefile.c
index aa44b484f035d82504ea0856c996b72c1263116d..25d3f4f0dfb2d3d4b8f608dedaf85a2e1b992e1f 100644 (file)
@@ -3354,6 +3354,18 @@ static void write_linestyle_color_modifiers(WriteData *wd, ListBase *modifiers)
                case LS_MODIFIER_MATERIAL:
                        struct_name = "LineStyleColorModifier_Material";
                        break;
+               case LS_MODIFIER_TANGENT:
+                       struct_name = "LineStyleColorModifier_Tangent";
+                       break;
+               case LS_MODIFIER_NOISE:
+                       struct_name = "LineStyleColorModifier_Noise";
+                       break;
+               case LS_MODIFIER_CREASE_ANGLE:
+                       struct_name = "LineStyleColorModifier_CreaseAngle";
+                       break;
+               case LS_MODIFIER_CURVATURE_3D:
+                       struct_name = "LineStyleColorModifier_Curvature_3D";
+                       break;
                default:
                        struct_name = "LineStyleColorModifier"; /* this should not happen */
                }
@@ -3373,6 +3385,18 @@ static void write_linestyle_color_modifiers(WriteData *wd, ListBase *modifiers)
                case LS_MODIFIER_MATERIAL:
                        writestruct(wd, DATA, "ColorBand", 1, ((LineStyleColorModifier_Material *)m)->color_ramp);
                        break;
+               case LS_MODIFIER_TANGENT:
+                       writestruct(wd, DATA, "ColorBand", 1, ((LineStyleColorModifier_Tangent *)m)->color_ramp);
+                       break;
+               case LS_MODIFIER_NOISE:
+                       writestruct(wd, DATA, "ColorBand", 1, ((LineStyleColorModifier_Noise *)m)->color_ramp);
+                       break;
+               case LS_MODIFIER_CREASE_ANGLE:
+                       writestruct(wd, DATA, "ColorBand", 1, ((LineStyleColorModifier_CreaseAngle *)m)->color_ramp);
+                       break;
+               case LS_MODIFIER_CURVATURE_3D:
+                       writestruct(wd, DATA, "ColorBand", 1, ((LineStyleColorModifier_Curvature_3D *)m)->color_ramp);
+                       break;
                }
        }
 }
@@ -3396,6 +3420,18 @@ static void write_linestyle_alpha_modifiers(WriteData *wd, ListBase *modifiers)
                case LS_MODIFIER_MATERIAL:
                        struct_name = "LineStyleAlphaModifier_Material";
                        break;
+               case LS_MODIFIER_TANGENT:
+                       struct_name = "LineStyleAlphaModifier_Tangent";
+                       break;
+               case LS_MODIFIER_NOISE:
+                       struct_name = "LineStyleAlphaModifier_Noise";
+                       break;
+               case LS_MODIFIER_CREASE_ANGLE:
+                       struct_name = "LineStyleAlphaModifier_CreaseAngle";
+                       break;
+               case LS_MODIFIER_CURVATURE_3D:
+                       struct_name = "LineStyleAlphaModifier_Curvature_3D";
+                       break;
                default:
                        struct_name = "LineStyleAlphaModifier"; /* this should not happen */
                }
@@ -3415,6 +3451,18 @@ static void write_linestyle_alpha_modifiers(WriteData *wd, ListBase *modifiers)
                case LS_MODIFIER_MATERIAL:
                        write_curvemapping(wd, ((LineStyleAlphaModifier_Material *)m)->curve);
                        break;
+               case LS_MODIFIER_TANGENT:
+                       write_curvemapping(wd, ((LineStyleAlphaModifier_Tangent *)m)->curve);
+                       break;
+               case LS_MODIFIER_NOISE:
+                       write_curvemapping(wd, ((LineStyleAlphaModifier_Noise *)m)->curve);
+                       break;
+               case LS_MODIFIER_CREASE_ANGLE:
+                       write_curvemapping(wd, ((LineStyleAlphaModifier_CreaseAngle *)m)->curve);
+                       break;
+               case LS_MODIFIER_CURVATURE_3D:
+                       write_curvemapping(wd, ((LineStyleAlphaModifier_Curvature_3D *)m)->curve);
+                       break;
                }
        }
 }
@@ -3441,6 +3489,18 @@ static void write_linestyle_thickness_modifiers(WriteData *wd, ListBase *modifie
                case LS_MODIFIER_CALLIGRAPHY:
                        struct_name = "LineStyleThicknessModifier_Calligraphy";
                        break;
+               case LS_MODIFIER_TANGENT:
+                       struct_name = "LineStyleThicknessModifier_Tangent";
+                       break;
+               case LS_MODIFIER_NOISE:
+                       struct_name = "LineStyleThicknessModifier_Noise";
+                       break;
+               case LS_MODIFIER_CREASE_ANGLE:
+                       struct_name = "LineStyleThicknessModifier_CreaseAngle";
+                       break;
+               case LS_MODIFIER_CURVATURE_3D:
+                       struct_name = "LineStyleThicknessModifier_Curvature_3D";
+                       break;
                default:
                        struct_name = "LineStyleThicknessModifier"; /* this should not happen */
                }
@@ -3460,6 +3520,15 @@ static void write_linestyle_thickness_modifiers(WriteData *wd, ListBase *modifie
                case LS_MODIFIER_MATERIAL:
                        write_curvemapping(wd, ((LineStyleThicknessModifier_Material *)m)->curve);
                        break;
+               case LS_MODIFIER_TANGENT:
+                       write_curvemapping(wd, ((LineStyleThicknessModifier_Tangent *)m)->curve);
+                       break;
+               case LS_MODIFIER_CREASE_ANGLE:
+                       write_curvemapping(wd, ((LineStyleThicknessModifier_CreaseAngle *)m)->curve);
+                       break;
+               case LS_MODIFIER_CURVATURE_3D:
+                       write_curvemapping(wd, ((LineStyleThicknessModifier_Curvature_3D *)m)->curve);
+                       break;
                }
        }
 }
@@ -3510,6 +3579,9 @@ static void write_linestyle_geometry_modifiers(WriteData *wd, ListBase *modifier
                case LS_MODIFIER_2D_TRANSFORM:
                        struct_name = "LineStyleGeometryModifier_2DTransform";
                        break;
+               case LS_MODIFIER_SIMPLIFICATION:
+                       struct_name = "LineStyleGeometryModifier_Simplification";
+                       break;
                default:
                        struct_name = "LineStyleGeometryModifier"; /* this should not happen */
                }