Fix T95238: BPY Documentation for Tablet Pressure is Incorrect
Set an appropriate range and default value for the property.
This commit is contained in:
parent
caaec3e0c5
commit
46abc6ce25
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue