object.dimensions: add warning about multiple consecutive assignments.
Since this is API-only prop now, it's worth warning about that limitation. Follow-up to comments in rB9c928bb93e04.
This commit is contained in:
parent
6c7762687e
commit
f10a88ae8d
|
@ -2313,7 +2313,10 @@ static void rna_def_object(BlenderRNA *brna)
|
|||
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, RNA_TRANSLATION_PREC_DEFAULT);
|
||||
RNA_def_property_ui_text(prop, "Dimensions", "Absolute bounding box dimensions of the object");
|
||||
RNA_def_property_ui_text(prop, "Dimensions",
|
||||
"Absolute bounding box dimensions of the object (WARNING: assigning to it or "
|
||||
"its members mutiple consecutive times will not work correctly, "
|
||||
"as this needs up-to-date evaluated data)");
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_TRANSFORM, "rna_Object_internal_update");
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue