[Bf-blender-cvs] [f10a88ae8d2] master: object.dimensions: add warning about multiple consecutive assignments.
Bastien Montagne
noreply at git.blender.org
Sun Jan 6 13:14:07 CET 2019
Commit: f10a88ae8d22cbf570956fd18ff60ef8e84fdd85
Author: Bastien Montagne
Date: Sun Jan 6 13:11:31 2019 +0100
Branches: master
https://developer.blender.org/rBf10a88ae8d22cbf570956fd18ff60ef8e84fdd85
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.
===================================================================
M source/blender/makesrna/intern/rna_object.c
===================================================================
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");
More information about the Bf-blender-cvs
mailing list