Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_linestyle.c
| Show First 20 Lines • Show All 1,300 Lines • ▼ Show 20 Lines | static void rna_def_linestyle_modifiers(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, NC_LINESTYLE, "rna_LineStyle_update"); | RNA_def_property_update(prop, NC_LINESTYLE, "rna_LineStyle_update"); | ||||
| srna = RNA_def_struct( | srna = RNA_def_struct( | ||||
| brna, "LineStyleGeometryModifier_SinusDisplacement", "LineStyleGeometryModifier"); | brna, "LineStyleGeometryModifier_SinusDisplacement", "LineStyleGeometryModifier"); | ||||
| RNA_def_struct_ui_text( | RNA_def_struct_ui_text( | ||||
| srna, "Sinus Displacement", "Add sinus displacement to stroke backbone geometry"); | srna, "Sinus Displacement", "Add sinus displacement to stroke backbone geometry"); | ||||
| rna_def_geometry_modifier(srna); | rna_def_geometry_modifier(srna); | ||||
| prop = RNA_def_property(srna, "wavelength", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "wavelength", PROP_FLOAT, PROP_UNSIGNED); | ||||
| RNA_def_property_float_sdna(prop, NULL, "wavelength"); | RNA_def_property_float_sdna(prop, NULL, "wavelength"); | ||||
| RNA_def_property_range(prop, 0.0001f, FLT_MAX); | |||||
| RNA_def_property_ui_text(prop, "Wavelength", "Wavelength of the sinus displacement"); | RNA_def_property_ui_text(prop, "Wavelength", "Wavelength of the sinus displacement"); | ||||
| RNA_def_property_update(prop, NC_LINESTYLE, "rna_LineStyle_update"); | RNA_def_property_update(prop, NC_LINESTYLE, "rna_LineStyle_update"); | ||||
| prop = RNA_def_property(srna, "amplitude", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "amplitude", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "amplitude"); | RNA_def_property_float_sdna(prop, NULL, "amplitude"); | ||||
| RNA_def_property_ui_text(prop, "Amplitude", "Amplitude of the sinus displacement"); | RNA_def_property_ui_text(prop, "Amplitude", "Amplitude of the sinus displacement"); | ||||
| RNA_def_property_update(prop, NC_LINESTYLE, "rna_LineStyle_update"); | RNA_def_property_update(prop, NC_LINESTYLE, "rna_LineStyle_update"); | ||||
| ▲ Show 20 Lines • Show All 892 Lines • Show Last 20 Lines | |||||