Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-01-06 15:11:31 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-01-06 15:11:31 +0300
commitf10a88ae8d22cbf570956fd18ff60ef8e84fdd85 (patch)
treeb83cdc57370f2151001355c6a0d8d1556fe1cfec /source/blender
parent6c7762687e57f2dd490f763d0b54288d84337a59 (diff)
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.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_object.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index ec365a92a91..d1659e52d85 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -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");