Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_brush.c
| Show First 20 Lines • Show All 2,002 Lines • ▼ Show 20 Lines | static void rna_def_brush(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "use_grab_active_vertex", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_grab_active_vertex", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_GRAB_ACTIVE_VERTEX); | RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_GRAB_ACTIVE_VERTEX); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Grab Active Vertex", | "Grab Active Vertex", | ||||
| "Apply the maximum grab strength to the active vertex instead of the cursor location"); | "Apply the maximum grab strength to the active vertex instead of the cursor location"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| prop = RNA_def_property(srna, "show_dynamic_mesh_preview", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_DYNAMIC_MESH_PREVIEW); | |||||
| RNA_def_property_ui_text(prop, | |||||
| "Dynamic Mesh Preview", | |||||
| "Show the wireframe under the cursor of the original mesh when the " | |||||
| "sculpt has active modifiers"); | |||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | |||||
| prop = RNA_def_property(srna, "use_pressure_strength", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_pressure_strength", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_ALPHA_PRESSURE); | RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_ALPHA_PRESSURE); | ||||
| RNA_def_property_ui_icon(prop, ICON_STYLUS_PRESSURE, 0); | RNA_def_property_ui_icon(prop, ICON_STYLUS_PRESSURE, 0); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Strength Pressure", "Enable tablet pressure sensitivity for strength"); | prop, "Strength Pressure", "Enable tablet pressure sensitivity for strength"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| prop = RNA_def_property(srna, "use_offset_pressure", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_offset_pressure", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 433 Lines • Show Last 20 Lines | |||||