Revision: 16284 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16284 Author: ben2610 Date: 2008-08-28 13:06:46 +0200 (Thu, 28 Aug 2008)
Log Message: ----------- more fix for compilation problem with KX_RayCast::Callback template in gcc Modified Paths: -------------- trunk/blender/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp trunk/blender/source/gameengine/Ketsji/KX_RaySensor.cpp Modified: trunk/blender/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp =================================================================== --- trunk/blender/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp 2008-08-28 10:43:17 UTC (rev 16283) +++ trunk/blender/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp 2008-08-28 11:06:46 UTC (rev 16284) @@ -272,7 +272,8 @@ bool result = false; - KX_RayCast::RayTest(physics_environment, frompoint3, topoint3, KX_RayCast::Callback<KX_MouseFocusSensor>(this,physics_controller)); + KX_RayCast::Callback<KX_MouseFocusSensor> callback(this,physics_controller); + KX_RayCast::RayTest(physics_environment, frompoint3, topoint3, callback); result = (m_hitObject!=0); Modified: trunk/blender/source/gameengine/Ketsji/KX_RaySensor.cpp =================================================================== --- trunk/blender/source/gameengine/Ketsji/KX_RaySensor.cpp 2008-08-28 10:43:17 UTC (rev 16283) +++ trunk/blender/source/gameengine/Ketsji/KX_RaySensor.cpp 2008-08-28 11:06:46 UTC (rev 16284) @@ -243,7 +243,8 @@ PHY_IPhysicsEnvironment* physics_environment = this->m_scene->GetPhysicsEnvironment(); - KX_RayCast::RayTest(physics_environment, frompoint, topoint, KX_RayCast::Callback<KX_RaySensor>(this, spc)); + KX_RayCast::Callback<KX_RaySensor> callback(this, spc); + KX_RayCast::RayTest(physics_environment, frompoint, topoint, callback); /* now pass this result to some controller */ _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs