[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19567] trunk/blender/source/blender/src/ buttons_editing.c: bugfix #18398
Ton Roosendaal
ton at blender.org
Mon Apr 6 20:08:15 CEST 2009
Revision: 19567
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19567
Author: ton
Date: 2009-04-06 20:08:15 +0200 (Mon, 06 Apr 2009)
Log Message:
-----------
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!
Modified Paths:
--------------
trunk/blender/source/blender/src/buttons_editing.c
Modified: trunk/blender/source/blender/src/buttons_editing.c
===================================================================
--- trunk/blender/source/blender/src/buttons_editing.c 2009-04-06 15:44:30 UTC (rev 19566)
+++ trunk/blender/source/blender/src/buttons_editing.c 2009-04-06 18:08:15 UTC (rev 19567)
@@ -3727,6 +3727,9 @@
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);
More information about the Bf-blender-cvs
mailing list