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

« back to all changes in this revision

Viewing changes to source/blender/blenlib/intern/matrixops.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:
5
5
 * Always use
6
6
 * - vector with x components :   float x[3], int x[3], etc
7
7
 *
8
 
 * $Id: matrixops.c,v 1.6 2005/03/19 21:08:10 zuster Exp $
 
8
 * $Id: matrixops.c,v 1.7 2007/04/04 13:18:28 campbellbarton Exp $
9
9
 *
10
10
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
11
11
 *
267
267
{
268
268
        float len;
269
269
        
270
 
        len= MTC_normalise3DF(mat[0]);
 
270
        len= MTC_normalize3DF(mat[0]);
271
271
        if(len!=0.0) mat[0][3]/= len;
272
 
        len= MTC_normalise3DF(mat[1]);
 
272
        len= MTC_normalize3DF(mat[1]);
273
273
        if(len!=0.0) mat[1][3]/= len;
274
 
        len= MTC_normalise3DF(mat[2]);
 
274
        len= MTC_normalize3DF(mat[2]);
275
275
        if(len!=0.0) mat[2][3]/= len;
276
276
}
277
277