Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_brush.c
| Show First 20 Lines • Show All 1,458 Lines • ▼ Show 20 Lines | static void rna_def_gpencil_options(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "fill_leak", PROP_INT, PROP_PIXEL); | prop = RNA_def_property(srna, "fill_leak", PROP_INT, PROP_PIXEL); | ||||
| RNA_def_property_int_sdna(prop, NULL, "fill_leak"); | RNA_def_property_int_sdna(prop, NULL, "fill_leak"); | ||||
| RNA_def_property_range(prop, 0, 100); | RNA_def_property_range(prop, 0, 100); | ||||
| RNA_def_property_ui_text(prop, "Leak Size", "Size in pixels to consider the leak closed"); | RNA_def_property_ui_text(prop, "Leak Size", "Size in pixels to consider the leak closed"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL); | RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL); | ||||
| /* fill factor size */ | /* fill factor size */ | ||||
| prop = RNA_def_property(srna, "fill_factor", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "fill_factor", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "fill_factor"); | RNA_def_property_float_sdna(prop, NULL, "fill_factor"); | ||||
| RNA_def_property_range(prop, 1, 8); | RNA_def_property_range(prop, GPENCIL_MIN_FILL_FAC, 8.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Resolution", | "Precision", | ||||
| "Multiplier for fill resolution, higher resolution is more accurate but slower"); | "Factor for fill boundary accuracy, higher values are more accurate but slower"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL); | RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL); | ||||
| /* fill simplify steps */ | /* fill simplify steps */ | ||||
| prop = RNA_def_property(srna, "fill_simplify_level", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "fill_simplify_level", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "fill_simplylvl"); | RNA_def_property_int_sdna(prop, NULL, "fill_simplylvl"); | ||||
| RNA_def_property_range(prop, 0, 10); | RNA_def_property_range(prop, 0, 10); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| ▲ Show 20 Lines • Show All 2,059 Lines • Show Last 20 Lines | |||||