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

« back to all changes in this revision

Viewing changes to source/gameengine/SceneGraph/SG_BBox.cpp

  • 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
/**
2
 
 * $Id: SG_BBox.cpp,v 1.2 2004/05/21 09:21:15 kester Exp $
 
2
 * $Id: SG_BBox.cpp,v 1.3 2007/04/04 13:18:41 campbellbarton Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
119
119
 
120
120
void SG_BBox::scale(const MT_Vector3& size, const MT_Point3& point)
121
121
{
122
 
        MT_Vector3 centre = (m_max - m_min)/2. + point;
123
 
        m_max = (m_max - centre)*size;
124
 
        m_min = (m_min - centre)*size;
 
122
        MT_Vector3 center = (m_max - m_min)/2. + point;
 
123
        m_max = (m_max - center)*size;
 
124
        m_min = (m_min - center)*size;
125
125
}
126
126
#endif
127
127