Ortho type of camera is now also controlled by CAM_LENS ipo.
authorNathan Letwory <nathan@letworyinteractive.com>
Wed, 2 May 2007 16:45:13 +0000 (16:45 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Wed, 2 May 2007 16:45:13 +0000 (16:45 +0000)
source/blender/blenkernel/intern/ipo.c

index 1757317b84967776deef68e0322150414dddc875..08924ac96d58c4d6ec1d94a071be28e909f70d6d 100644 (file)
@@ -1481,7 +1481,11 @@ void *get_ipo_poin(ID *id, IpoCurve *icu, int *type)
                /* yafray: aperture & focal distance params */
                switch(icu->adrcode) {
                case CAM_LENS:
-                       poin= &(ca->lens); break;
+                       if(ca->type==CAM_ORTHO)
+                               poin= &(ca->ortho_scale);
+                       else
+                               poin= &(ca->lens); 
+                       break;
                case CAM_STA:
                        poin= &(ca->clipsta); break;
                case CAM_END: