[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17583] trunk/blender/source/gameengine/ Ketsji/KX_Scene.cpp: BGE bug fix: culling algorithm didn' t used the correct camera.

Benoit Bolsee benoit.bolsee at online.be
Wed Nov 26 18:35:53 CET 2008


Revision: 17583
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17583
Author:   ben2610
Date:     2008-11-26 18:35:53 +0100 (Wed, 26 Nov 2008)

Log Message:
-----------
BGE bug fix: culling algorithm didn't used the correct camera.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp

Modified: trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp	2008-11-26 17:34:10 UTC (rev 17582)
+++ trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp	2008-11-26 17:35:53 UTC (rev 17583)
@@ -1249,7 +1249,7 @@
 	// If the camera is inside this node, then the object is visible.
 	if (!vis)
 	{
-		vis = gameobj->GetSGNode()->inside( GetActiveCamera()->GetCameraLocation() );
+		vis = gameobj->GetSGNode()->inside( cam->GetCameraLocation() );
 	}
 		
 	// Test the object's bound sphere against the view frustum.





More information about the Bf-blender-cvs mailing list