Skip to content

Commit 55a4022

Browse files
author
Benjamin Deleze
committed
revert
1 parent 7ac2243 commit 55a4022

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/webots/nodes/WbCamera.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,9 @@ void WbCamera::updateRaysSetupIfNeeded() {
473473
(isPlanarProjection() || horizontalFieldOfView > M_PI) ?
474474
WbWrenCamera::computeFieldOfViewY(horizontalFieldOfView, (double)width() / (double)height()) :
475475
mWrenCamera->sphericalFieldOfViewY();
476-
const WbAffinePlane *frustumPlanes = WbObjectDetection::computeFrustumPlanes(this, verticalFieldOfView, horizontalFieldOfView,
477-
recognition()->maxRange(), isPlanarProjection());
476+
const WbAffinePlane *frustumPlanes =
477+
WbObjectDetection::computeFrustumPlanes(this, verticalFieldOfView, horizontalFieldOfView,
478+
recognition()->maxRange(), isPlanarProjection());
478479

479480
// update list of recognized objects
480481
foreach (WbRecognizedObject *recognizedObject, mRecognizedObjects) {
@@ -705,8 +706,9 @@ void WbCamera::computeRecognizedObjects(bool finalSetup, bool needCollisionDetec
705706
(isPlanarProjection() || horizontalFieldOfView > M_PI) ?
706707
WbWrenCamera::computeFieldOfViewY(horizontalFieldOfView, (double)width() / (double)height()) :
707708
mWrenCamera->sphericalFieldOfViewY();
708-
const WbAffinePlane *frustumPlanes = WbObjectDetection::computeFrustumPlanes(this, verticalFieldOfView, horizontalFieldOfView,
709-
recognition()->maxRange(), isPlanarProjection());
709+
const WbAffinePlane *frustumPlanes =
710+
WbObjectDetection::computeFrustumPlanes(this, verticalFieldOfView, horizontalFieldOfView,
711+
recognition()->maxRange(), isPlanarProjection());
710712

711713
// loop for each possible target to check if it is visible
712714
const QList<WbSolid *> objects = WbWorld::instance()->cameraRecognitionObjects();

0 commit comments

Comments
 (0)