[Bf-blender-cvs] [881be1f] compositor-2016: RNA: disable animating object dimensions

Campbell Barton noreply at git.blender.org
Wed Jun 8 21:53:02 CEST 2016


Commit: 881be1fa5081b8f9b03075f6106734f25822f5b9
Author: Campbell Barton
Date:   Mon Jun 6 12:54:55 2016 +1000
Branches: compositor-2016
https://developer.blender.org/rB881be1fa5081b8f9b03075f6106734f25822f5b9

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");




More information about the Bf-blender-cvs mailing list