[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32139] trunk/blender/source/blender/ makesrna/intern/rna_camera.c: disable animating the camera lens angle, this way we dont have the problem where both lens and angle are animated

Campbell Barton ideasman42 at gmail.com
Mon Sep 27 07:23:28 CEST 2010


Revision: 32139
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32139
Author:   campbellbarton
Date:     2010-09-27 07:23:23 +0200 (Mon, 27 Sep 2010)

Log Message:
-----------
disable animating the camera lens angle, this way we dont have the problem where both lens and angle are animated
(2 fcurves accessing the same data), this should be handled by the units system but for now disabling this means we don't have to deal with animated angle later on.
note: durian files didnt use animated angle anywhere.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_camera.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_camera.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_camera.c	2010-09-27 05:16:45 UTC (rev 32138)
+++ trunk/blender/source/blender/makesrna/intern/rna_camera.c	2010-09-27 05:23:23 UTC (rev 32139)
@@ -104,6 +104,7 @@
 	
 	prop= RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE);
 	RNA_def_property_range(prop, M_PI * (0.367/180.0), M_PI * (172.847/180.0));
+	RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
 	RNA_def_property_ui_text(prop, "Angle", "Perspective Camera lens field of view in degrees");
 	RNA_def_property_float_funcs(prop, "rna_Camera_angle_get", "rna_Camera_angle_set", NULL); /* only for deg/rad conversion */
 	RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL);





More information about the Bf-blender-cvs mailing list