Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sculpt_paint.c
| Show First 20 Lines • Show All 1,559 Lines • ▼ Show 20 Lines | static void rna_def_gpencil_sculpt(BlenderRNA *brna) | ||||
| RNA_def_property_float_default(prop, 0.1f); | RNA_def_property_float_default(prop, 0.1f); | ||||
| RNA_def_property_ui_text(prop, "Threshold", "Threshold for stroke intersections"); | RNA_def_property_ui_text(prop, "Threshold", "Threshold for stroke intersections"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| } | } | ||||
| static void rna_def_curves_sculpt(BlenderRNA *brna) | static void rna_def_curves_sculpt(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | |||||
| srna = RNA_def_struct(brna, "CurvesSculpt", "Paint"); | srna = RNA_def_struct(brna, "CurvesSculpt", "Paint"); | ||||
| RNA_def_struct_path_func(srna, "rna_CurvesSculpt_path"); | RNA_def_struct_path_func(srna, "rna_CurvesSculpt_path"); | ||||
| RNA_def_struct_ui_text(srna, "Curves Sculpt Paint", ""); | RNA_def_struct_ui_text(srna, "Curves Sculpt Paint", ""); | ||||
| prop = RNA_def_property(srna, "interpolate_length", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", CURVES_SCULPT_FLAG_INTERPOLATE_LENGTH); | |||||
| RNA_def_property_ui_text( | |||||
| prop, "Interpolate Length", "Use length of the curves in close proximity"); | |||||
| prop = RNA_def_property(srna, "interpolate_shape", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", CURVES_SCULPT_FLAG_INTERPOLATE_SHAPE); | |||||
| RNA_def_property_ui_text( | |||||
| prop, "Interpolate Shape", "Use shape of the curves in close proximity"); | |||||
| prop = RNA_def_property(srna, "curve_length", PROP_FLOAT, PROP_DISTANCE); | |||||
| RNA_def_property_range(prop, 0.0, FLT_MAX); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Curve Length", | |||||
| "Length of newly added curves when it is not interpolated from other curves"); | |||||
| } | } | ||||
| void RNA_def_sculpt_paint(BlenderRNA *brna) | void RNA_def_sculpt_paint(BlenderRNA *brna) | ||||
| { | { | ||||
| /* *** Non-Animated *** */ | /* *** Non-Animated *** */ | ||||
| RNA_define_animate_sdna(false); | RNA_define_animate_sdna(false); | ||||
| rna_def_paint_curve(brna); | rna_def_paint_curve(brna); | ||||
| rna_def_paint_tool_slot(brna); | rna_def_paint_tool_slot(brna); | ||||
| Show All 18 Lines | |||||