@@ -473,9 +473,8 @@ void WbCamera::updateRaysSetupIfNeeded() {
473473 (isPlanarProjection () || horizontalFieldOfView > M_PI) ?
474474 WbWrenCamera::computeFieldOfViewY (horizontalFieldOfView, (double )width () / (double )height ()) :
475475 mWrenCamera ->sphericalFieldOfViewY ();
476- const WbAffinePlane *frustumPlanes =
477- WbObjectDetection::computeFrustumPlanes (this , verticalFieldOfView, horizontalFieldOfView,
478- recognition ()->maxRange (), isPlanarProjection ());
476+ const WbAffinePlane *frustumPlanes = WbObjectDetection::computeFrustumPlanes (this , verticalFieldOfView, horizontalFieldOfView,
477+ recognition ()->maxRange (), isPlanarProjection ());
479478
480479 // update list of recognized objects
481480 foreach (WbRecognizedObject *recognizedObject, mRecognizedObjects ) {
@@ -706,9 +705,8 @@ void WbCamera::computeRecognizedObjects(bool finalSetup, bool needCollisionDetec
706705 (isPlanarProjection () || horizontalFieldOfView > M_PI) ?
707706 WbWrenCamera::computeFieldOfViewY (horizontalFieldOfView, (double )width () / (double )height ()) :
708707 mWrenCamera ->sphericalFieldOfViewY ();
709- const WbAffinePlane *frustumPlanes =
710- WbObjectDetection::computeFrustumPlanes (this , verticalFieldOfView, horizontalFieldOfView,
711- recognition ()->maxRange (), isPlanarProjection ());
708+ const WbAffinePlane *frustumPlanes = WbObjectDetection::computeFrustumPlanes (this , verticalFieldOfView, horizontalFieldOfView,
709+ recognition ()->maxRange (), isPlanarProjection ());
712710
713711 // loop for each possible target to check if it is visible
714712 const QList<WbSolid *> objects = WbWorld::instance ()->cameraRecognitionObjects ();
0 commit comments