Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-04-06 22:08:15 +0400
committerTon Roosendaal <ton@blender.org>2009-04-06 22:08:15 +0400
commit445ca000bcdc732de3c1af8d98f726bd71b96423 (patch)
tree8813f5220d7af1c4d4cec6951dd2bd5cdca72ce3 /source
parent46a440c7a5393177dbc74cef466d1eb5643e068d (diff)
bugfix #18398
When using 'angle' display for camera, the 'lens' ipo didn't update this button. Implementation still lacks a bit... having both variables in the camera struct is asking for troubles. Put on the re-think list for 2.5!
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/buttons_editing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c
index 80495b9ff80..8b249815b6f 100644
--- a/source/blender/src/buttons_editing.c
+++ b/source/blender/src/buttons_editing.c
@@ -3727,6 +3727,9 @@ static void editing_panel_camera_type(Object *ob, Camera *cam)
10, 160, 150, 20, &cam->ortho_scale, 0.01, 1000.0, 50, 0, "Specify the ortho scaling of the used camera");
} else {
if(cam->flag & CAM_ANGLETOGGLE) {
+ /* ensure animated lens value is always copied */
+ do_lenstoangleconversion_cb(&cam->lens, &cam->angle);
+
but= uiDefButF(block, NUM,REDRAWVIEW3D, "Lens:",
10, 160, 130, 20, &cam->angle, 7.323871, 172.847331, 100, 0, "Specify the lens of the camera in degrees");
uiButSetFunc(but,do_angletolensconversion_cb, &cam->lens, &cam->angle);