~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/intern/ipo.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* ipo.c
2
2
 * 
3
 
 * $Id: ipo.c,v 1.48 2007/01/15 12:44:45 ton Exp $
 
3
 * $Id: ipo.c,v 1.50 2007/05/02 16:45:13 jesterking Exp $
4
4
 *
5
5
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
6
6
 *
287
287
        return ipon;
288
288
}
289
289
 
 
290
/* uses id->newid to match pointers with other copied data */
 
291
void ipo_idnew(Ipo *ipo)
 
292
{
 
293
        if(ipo) {
 
294
                IpoCurve *icu;
 
295
                
 
296
                for(icu= ipo->curve.first; icu; icu= icu->next) {
 
297
                        if(icu->driver) {
 
298
                                ID_NEW(icu->driver->ob);
 
299
                        }
 
300
                }
 
301
        }
 
302
}
 
303
 
290
304
void make_local_obipo(Ipo *ipo)
291
305
{
292
306
        Object *ob;
1467
1481
                /* yafray: aperture & focal distance params */
1468
1482
                switch(icu->adrcode) {
1469
1483
                case CAM_LENS:
1470
 
                        poin= &(ca->lens); break;
 
1484
                        if(ca->type==CAM_ORTHO)
 
1485
                                poin= &(ca->ortho_scale);
 
1486
                        else
 
1487
                                poin= &(ca->lens); 
 
1488
                        break;
1471
1489
                case CAM_STA:
1472
1490
                        poin= &(ca->clipsta); break;
1473
1491
                case CAM_END: