mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Sculpt: Allow negative values for tilt_strength_factor
Part of #82877 * Adds to description to indicate new functionality. Pull Request: https://projects.blender.org/blender/blender/pulls/136856
This commit is contained in:
parent
f1c87d1bd2
commit
bb7e889888
1 changed files with 6 additions and 4 deletions
|
|
@ -3277,10 +3277,12 @@ static void rna_def_brush(BlenderRNA *brna)
|
|||
prop = RNA_def_property(srna, "tilt_strength_factor", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "tilt_strength_factor");
|
||||
RNA_def_property_float_default(prop, 0);
|
||||
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_text(
|
||||
prop, "Tilt Strength", "How much the tilt of the pen will affect the brush");
|
||||
RNA_def_property_range(prop, -1.0f, 1.0f);
|
||||
RNA_def_property_ui_range(prop, -1.0f, 1.0f, 0.001, 3);
|
||||
RNA_def_property_ui_text(prop,
|
||||
"Tilt Strength",
|
||||
"How much the tilt of the pen will affect the brush. Negative values "
|
||||
"indicate inverting the tilt directions. ");
|
||||
RNA_def_property_update(prop, 0, "rna_Brush_update");
|
||||
|
||||
prop = RNA_def_property(srna, "normal_radius_factor", PROP_FLOAT, PROP_FACTOR);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue