Fix T95238: BPY Documentation for Tablet Pressure is Incorrect

Set an appropriate range and default value for the property.
This commit is contained in:
Germano Cavalcante 2022-01-31 10:19:46 -03:00
parent caaec3e0c5
commit 46abc6ce25
1 changed files with 2 additions and 1 deletions

View File

@ -2175,7 +2175,8 @@ static void rna_def_event(BlenderRNA *brna)
RNA_def_property_ui_text(
prop, "Mouse Previous Y Position", "The window relative vertical location of the mouse");
prop = RNA_def_property(srna, "pressure", PROP_FLOAT, PROP_NONE);
prop = RNA_def_property(srna, "pressure", PROP_FLOAT, PROP_FACTOR);
RNA_def_property_float_default(prop, 1.0f);
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_property_float_funcs(prop, "rna_Event_pressure_get", NULL, NULL);
RNA_def_property_ui_text(