Fix: Add units to text offset_x and offset_y properties
Differential Revision: https://developer.blender.org/D4281
This commit is contained in:
parent
2ff6b2925a
commit
9552d4b321
|
@ -1041,14 +1041,14 @@ static void rna_def_font(BlenderRNA *UNUSED(brna), StructRNA *srna)
|
|||
RNA_def_property_ui_text(prop, "Shear", "Italic angle of the characters");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
prop = RNA_def_property(srna, "offset_x", PROP_FLOAT, PROP_NONE);
|
||||
prop = RNA_def_property(srna, "offset_x", PROP_FLOAT, PROP_DISTANCE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "xof");
|
||||
RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, -50.0f, 50.0f, 10, 3);
|
||||
RNA_def_property_ui_text(prop, "X Offset", "Horizontal offset from the object origin");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
prop = RNA_def_property(srna, "offset_y", PROP_FLOAT, PROP_NONE);
|
||||
prop = RNA_def_property(srna, "offset_y", PROP_FLOAT, PROP_DISTANCE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "yof");
|
||||
RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, -50.0f, 50.0f, 10, 3);
|
||||
|
|
Loading…
Reference in New Issue