Skip to content

Commit c48c426

Browse files
author
Benjamin Délèze
authored
Merge pull request #6098 from cyberbotics/sync-master-ceb889b15
Merge master into develop
2 parents 047190f + 630fbe1 commit c48c426

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/ode/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ space := $(null) $(null)
1717
WEBOTS_HOME_PATH?=$(subst $(space),\ ,$(strip $(subst \,/,$(WEBOTS_HOME))))
1818
include $(WEBOTS_HOME_PATH)/resources/Makefile.os.include
1919

20-
TARGET_LIB_DIR=$(WEBOTS_LIB_PATH)
2120
ifeq ($(OSTYPE),darwin)
2221
INSTALL_NAME = @rpath/Contents/lib/webots/libode.dylib
2322
endif
@@ -33,6 +32,8 @@ endif
3332

3433
ifeq ($(MAKECMDGOALS),profile)
3534
STATIC_LIBRARY = true
35+
else
36+
TARGET_LIB_DIR=$(WEBOTS_LIB_PATH)
3637
endif
3738

3839
FILES_TO_REMOVE = $(MAIN_TARGET_COPY) libode.a ode.a

src/webots/nodes/utils/WbObjectDetection.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,9 @@ bool WbObjectDetection::isContainedInFrustum(const WbAffinePlane *frustumPlanes)
423423
return true;
424424
}
425425

426-
WbAffinePlane *WbObjectDetection::computeFrustumPlanes(const WbSolid *device, double verticalFieldOfView,
427-
double horizontalFieldOfView, double maxRange, bool isPlanarProjection) {
426+
WbAffinePlane *WbObjectDetection::computeFrustumPlanes(const WbSolid *device, const double verticalFieldOfView,
427+
const double horizontalFieldOfView, const double maxRange,
428+
bool isPlanarProjection) {
428429
const WbVector3 devicePosition = device->position();
429430
const WbMatrix3 deviceRotation = device->rotationMatrix();
430431
// construct the 4 planes defining the sides of the frustum

src/webots/nodes/utils/WbObjectDetection.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ class WbObjectDetection {
5050
bool isContainedInFrustum(const WbAffinePlane *frustumPlanes);
5151

5252
// Computes the frustum plane for the given device ray.
53-
static WbAffinePlane *computeFrustumPlanes(const WbSolid *device, double verticalFieldOfView, double horizontalFieldOfView,
54-
double maxRange, bool isPlanarProjection);
53+
static WbAffinePlane *computeFrustumPlanes(const WbSolid *device, const double verticalFieldOfView,
54+
const double horizontalFieldOfView, const double maxRange,
55+
bool isPlanarProjection);
5556

5657
private:
5758
static void mergeBounds(WbVector3 &referenceObjectSize, WbVector3 &referenceObjectRelativePosition,

0 commit comments

Comments
 (0)