From f10a88ae8d22cbf570956fd18ff60ef8e84fdd85 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 6 Jan 2019 13:11:31 +0100 Subject: [PATCH] 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. --- source/blender/makesrna/intern/rna_object.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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");