Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_gpencil_modifier.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| RNA_def_property_int_sdna(prop, NULL, "step"); | RNA_def_property_int_sdna(prop, NULL, "step"); | ||||
| RNA_def_property_range(prop, 1, 50); | RNA_def_property_range(prop, 1, 50); | ||||
| RNA_def_property_ui_text(prop, "Iterations", "Number of times to apply simplify"); | RNA_def_property_ui_text(prop, "Iterations", "Number of times to apply simplify"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| /* Sample */ | /* Sample */ | ||||
| prop = RNA_def_property(srna, "length", PROP_FLOAT, PROP_DISTANCE); | prop = RNA_def_property(srna, "length", PROP_FLOAT, PROP_DISTANCE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "length"); | RNA_def_property_float_sdna(prop, NULL, "length"); | ||||
| RNA_def_property_range(prop, 0, FLT_MAX); | RNA_def_property_range(prop, 0.005, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, 0, 1.0, 0.01, 3); | RNA_def_property_ui_range(prop, 0, 1.0, 0.05, 3); | ||||
| RNA_def_property_ui_text(prop, "Length", "Length of each segment"); | RNA_def_property_ui_text(prop, "Length", "Length of each segment"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "sharp_threshold", PROP_FLOAT, PROP_ANGLE); | prop = RNA_def_property(srna, "sharp_threshold", PROP_FLOAT, PROP_ANGLE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "sharp_threshold"); | RNA_def_property_float_sdna(prop, NULL, "sharp_threshold"); | ||||
| RNA_def_property_range(prop, 0, M_PI); | RNA_def_property_range(prop, 0, M_PI); | ||||
| RNA_def_property_ui_range(prop, 0, M_PI, 1.0, 1); | RNA_def_property_ui_range(prop, 0, M_PI, 1.0, 1); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||