From 445ca000bcdc732de3c1af8d98f726bd71b96423 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 6 Apr 2009 18:08:15 +0000 Subject: [PATCH] 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! --- source/blender/src/buttons_editing.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.28.0