Skip to content

Commit 7ac2243

Browse files
author
Benjamin Deleze
committed
fix test sources
1 parent 1345cf2 commit 7ac2243

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/webots/nodes/WbCamera.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)