Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_brush.c
| Show First 20 Lines • Show All 1,856 Lines • ▼ Show 20 Lines | static void rna_def_brush(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "pose_offset", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "pose_offset", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "pose_offset"); | RNA_def_property_float_sdna(prop, NULL, "pose_offset"); | ||||
| RNA_def_property_range(prop, 0.0f, 2.0f); | RNA_def_property_range(prop, 0.0f, 2.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Pose Origin Offset", "Offset of the pose origin in relation to the brush radius"); | prop, "Pose Origin Offset", "Offset of the pose origin in relation to the brush radius"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| prop = RNA_def_property(srna, "pose_smooth_iterations", PROP_INT, PROP_UNSIGNED); | |||||
| RNA_def_property_int_sdna(prop, NULL, "pose_smooth_iterations"); | |||||
| RNA_def_property_range(prop, 0, 100); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Smooth Iterations", | |||||
| "Smooth iterations applied after calculating the pose factor of each vertex"); | |||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | |||||
| prop = RNA_def_property(srna, "auto_smooth_factor", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "auto_smooth_factor", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "autosmooth_factor"); | RNA_def_property_float_sdna(prop, NULL, "autosmooth_factor"); | ||||
| RNA_def_property_float_default(prop, 0); | RNA_def_property_float_default(prop, 0); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.001, 3); | RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.001, 3); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Autosmooth", "Amount of smoothing to automatically apply to each stroke"); | prop, "Autosmooth", "Amount of smoothing to automatically apply to each stroke"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| ▲ Show 20 Lines • Show All 578 Lines • Show Last 20 Lines | |||||