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

« back to all changes in this revision

Viewing changes to source/blender/python/api2_2x/Lattice.c

  • Committer: Bazaar Package Importer
  • Author(s): Lukas Fittl
  • Date: 2006-09-20 01:57:27 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060920015727-gmoqlxwstx9wwqs3
Tags: 2.42a-1ubuntu1
* Merge from Debian unstable (Closes: Malone #55903). Remaining changes:
  - debian/genpot: Add python scripts from Lee June <blender@eyou.com> to
    generate a reasonable PO template from the sources. Since gettext is used
    in a highly nonstandard way, xgettext does not work for this job.
  - debian/rules: Call the scripts, generate po/blender.pot, and clean it up
    in the clean target.
  - Add a proper header to the generated PO template.
* debian/control: Build depend on libavformat-dev >= 3:0.cvs20060823-3.1,
  otherwise this package will FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* 
2
 
 * $Id: Lattice.c,v 1.20 2005/11/30 08:18:05 khughes Exp $
 
2
 * $Id: Lattice.c,v 1.22 2006/05/07 08:23:51 schlaile Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
46
46
#include "DNA_scene_types.h"
47
47
#include "BIF_editkey.h"
48
48
#include "BIF_editdeform.h"
 
49
#include "BIF_space.h"
49
50
#include "blendef.h"
50
51
#include "gen_utils.h"
51
52
 
751
752
        if( frame > 0 ) {
752
753
                frame = EXPP_ClampInt( frame, 1, MAXFRAME );
753
754
                oldfra = G.scene->r.cfra;
754
 
                G.scene->r.cfra = (short)frame;
 
755
                G.scene->r.cfra = (int)frame;
755
756
        }
756
757
//      else just use current frame, then
757
758
//              return (EXPP_ReturnPyObjError (PyExc_RuntimeError,
759
760
 
760
761
        //insert a keybock for the lattice (1=relative)
761
762
        insert_lattkey( lt , 1);
 
763
        allspace(REMAKEIPO, 0);
762
764
 
763
765
        if( frame > 0 )
764
 
                G.scene->r.cfra = (short)oldfra;
 
766
                G.scene->r.cfra = (int)oldfra;
765
767
 
766
768
        Py_INCREF( Py_None );
767
769
        return Py_None;