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

« back to all changes in this revision

Viewing changes to source/gameengine/Ketsji/KX_Scene.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: KX_Scene.cpp,v 1.26 2006/05/22 21:03:43 erwin Exp $
 
2
 * $Id: KX_Scene.cpp,v 1.27 2007/04/04 13:18:39 campbellbarton Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
919
919
        if (dotest && !node->inside( cam->NodeGetWorldPosition()))
920
920
        {
921
921
                MT_Scalar radius = node->Radius();
922
 
                MT_Point3 centre = node->Centre();
 
922
                MT_Point3 center = node->Center();
923
923
                
924
 
                intersect =  cam->SphereInsideFrustum(centre, radius); 
 
924
                intersect =  cam->SphereInsideFrustum(center, radius); 
925
925
                
926
926
                if (intersect == KX_Camera::INTERSECT)
927
927
                {