Fix T52729: Decimals not showing over 100m or 100 feet
Use same 5 digits precision as we already use for e.g. Object's location, for Object's dimensions too. To be backported to 2.79a, should we do it.
This commit is contained in:
parent
a22590a62c
commit
3c1c3b64c5
Notes:
blender-bot
2023-02-14 06:47:29 +01:00
Referenced by issue #53683, 2.79a release Referenced by issue #52729, Decimals not showing over 100m or 100 feet
|
@ -2392,7 +2392,7 @@ static void rna_def_object(BlenderRNA *brna)
|
|||
/* only for the transform-panel and conflicts with animating scale */
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_float_funcs(prop, "rna_Object_dimensions_get", "rna_Object_dimensions_set", NULL);
|
||||
RNA_def_property_ui_range(prop, 0.0f, FLT_MAX, 1, 3);
|
||||
RNA_def_property_ui_range(prop, 0.0f, FLT_MAX, 1, RNA_TRANSLATION_PREC_DEFAULT);
|
||||
RNA_def_property_ui_text(prop, "Dimensions", "Absolute bounding box dimensions of the object");
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_TRANSFORM, "rna_Object_internal_update");
|
||||
|
||||
|
|
Loading…
Reference in New Issue