Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_brush.c
| Show First 20 Lines • Show All 1,938 Lines • ▼ Show 20 Lines | RNA_def_property_ui_text(prop, | ||||
| "Scale Uniform", | "Scale Uniform", | ||||
| "Grow or shrink curves by changing their size uniformly instead of " | "Grow or shrink curves by changing their size uniformly instead of " | ||||
| "using trimming or extrapolation"); | "using trimming or extrapolation"); | ||||
| prop = RNA_def_property(srna, "minimum_length", PROP_FLOAT, PROP_DISTANCE); | prop = RNA_def_property(srna, "minimum_length", PROP_FLOAT, PROP_DISTANCE); | ||||
| RNA_def_property_range(prop, 0.0f, FLT_MAX); | RNA_def_property_range(prop, 0.0f, FLT_MAX); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Minimum Length", "Avoid shrinking curves shorter than this length"); | prop, "Minimum Length", "Avoid shrinking curves shorter than this length"); | ||||
| prop = RNA_def_property(srna, "interpolate_length", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_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", BRUSH_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"); | |||||
| } | } | ||||
| static void rna_def_brush(BlenderRNA *brna) | static void rna_def_brush(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem prop_blend_items[] = { | static const EnumPropertyItem prop_blend_items[] = { | ||||
| ▲ Show 20 Lines • Show All 1,669 Lines • Show Last 20 Lines | |||||