Commit: 9d090ed1cde2ae75c36548ed31daae10f121317a
Author: Campbell Barton
Date:   Mon Jun 6 12:54:55 2016 +1000
Branches: master
https://developer.blender.org/rB9d090ed1cde2ae75c36548ed31daae10f121317a

RNA: disable animating object dimensions

===================================================================

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 9ebef9d..a7f5c21 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -2387,6 +2387,8 @@ static void rna_def_object(BlenderRNA *brna)
 
        prop = RNA_def_property(srna, "dimensions", PROP_FLOAT, 
PROP_XYZ_LENGTH);
        RNA_def_property_array(prop, 3);
+       /* 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_text(prop, "Dimensions", "Absolute bounding box 
dimensions of the object");

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to