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

« back to all changes in this revision

Viewing changes to source/gameengine/SceneGraph/SG_Tree.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_Tree.cpp,v 1.4 2005/03/09 19:45:59 lukep Exp $
 
2
 * $Id: SG_Tree.cpp,v 1.5 2007/04/04 13:18:41 campbellbarton Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
56
56
                m_bbox += m_right->m_bbox;
57
57
                m_right->m_parent = this;
58
58
        }
59
 
        m_centre = (m_bbox.m_min + m_bbox.m_max)/2.0;
 
59
        m_center = (m_bbox.m_min + m_bbox.m_max)/2.0;
60
60
        m_radius = (m_bbox.m_max - m_bbox.m_min).length();
61
61
}
62
62
        
66
66
                m_client_object(client)
67
67
{
68
68
        m_bbox = SG_BBox(client->BBox(), client->GetWorldTransform());
69
 
        m_centre = (m_bbox.m_min + m_bbox.m_max)/2.0;
 
69
        m_center = (m_bbox.m_min + m_bbox.m_max)/2.0;
70
70
        m_radius = (m_bbox.m_max - m_bbox.m_min).length();
71
71
}
72
72
 
155
155
{
156
156
        m_left = left;
157
157
        m_bbox += left->m_bbox;
158
 
        m_centre = (m_bbox.m_min + m_bbox.m_max)/2.0;
 
158
        m_center = (m_bbox.m_min + m_bbox.m_max)/2.0;
159
159
        m_radius = (m_bbox.m_max - m_bbox.m_min).length();
160
160
}
161
161
 
163
163
{
164
164
        m_right = right;
165
165
        m_bbox += right->m_bbox;
166
 
        m_centre = (m_bbox.m_min + m_bbox.m_max)/2.0;
 
166
        m_center = (m_bbox.m_min + m_bbox.m_max)/2.0;
167
167
        m_radius = (m_bbox.m_max - m_bbox.m_min).length();
168
168
}
169
169