diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-27 09:23:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-27 09:23:23 +0400 |
commit | 0699faf9b372cbde64e3bda6f914e7cd96f7443c (patch) | |
tree | ebc46e82da71b0316ce077c974de4c6b39efc677 /source/blender/makesrna | |
parent | b4980165f1fe4d420a55daeea7f2fa546b654416 (diff) |
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.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_camera.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_camera.c b/source/blender/makesrna/intern/rna_camera.c index b7d1c5ed8ba..7f6ab4720fa 100644 --- a/source/blender/makesrna/intern/rna_camera.c +++ b/source/blender/makesrna/intern/rna_camera.c @@ -104,6 +104,7 @@ void RNA_def_camera(BlenderRNA *brna) 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); |