Skip to content

Commit a07c4a2

Browse files
authored
Merge pull request cyberbotics#6750 from cyberbotics/sync-master-65094da8c
Merge master into develop
2 parents 8c77fed + e32465c commit a07c4a2

4 files changed

Lines changed: 10 additions & 12 deletions

File tree

docs/reference/changelog-r2025.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ Released on December **th, 2023.
4848
- Fixed a bug where Webots would crash if a geometry was inserted into a `Shape` node used a bounding box ([#6691](https://github.com/cyberbotics/webots/pull/6691)).
4949
- Removed the old `wb_supervisor_field_import_sf_node` and `wb_supervisor_field_import_mf_node` functions from the list of editor autocomplete suggestions ([#6701](https://github.com/cyberbotics/webots/pull/6701)).
5050
- Fixed a bug preventing nodes from being inserted into unconnected proto fields ([#6735](https://github.com/cyberbotics/webots/pull/6735)).
51+
- Fixed crash when an invalid HDR image was set as a world background ([#6744](https://github.com/cyberbotics/webots/pull/6744)).
5152
- Fixed handling of remote assets from unofficial sources ([#6585](https://github.com/cyberbotics/webots/pull/6585)).
5253
- Fixed the QtToolTip bug, where the text in the text box is not being displayed ([#6711](https://github.com/cyberbotics/webots/pull/6711)).

projects/robots/clearpath/heron/worlds/ocean.wbt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
EXTERNPROTO "webots://projects/objects/backgrounds/protos/TexturedBackground.proto"
44
EXTERNPROTO "webots://projects/objects/backgrounds/protos/TexturedBackgroundLight.proto"
55
EXTERNPROTO "webots://projects/objects/obstacles/protos/OilBarrel.proto"
6-
EXTERNPROTO "../protos/Heron.proto"
6+
EXTERNPROTO "webots://projects/robots/clearpath/heron/protos/Heron.proto"
77

88
WorldInfo {
99
}
@@ -30,11 +30,7 @@ DEF WATER Fluid {
3030
}
3131
]
3232
viscosity 0.01
33-
boundingObject Transform {
34-
children [
35-
USE WATER_BOX
36-
]
37-
}
33+
boundingObject USE WATER_BOX
3834
locked TRUE
3935
}
4036
Heron {

projects/robots/clearpath/heron/worlds/swarm.wbt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
EXTERNPROTO "webots://projects/objects/backgrounds/protos/TexturedBackground.proto"
44
EXTERNPROTO "webots://projects/objects/backgrounds/protos/TexturedBackgroundLight.proto"
55
EXTERNPROTO "webots://projects/objects/obstacles/protos/OilBarrel.proto"
6-
EXTERNPROTO "../protos/Heron.proto"
6+
EXTERNPROTO "webots://projects/robots/clearpath/heron/protos/Heron.proto"
77

88
WorldInfo {
99
}
@@ -30,11 +30,7 @@ DEF WATER Fluid {
3030
}
3131
]
3232
viscosity 0.01
33-
boundingObject Transform {
34-
children [
35-
USE WATER_BOX
36-
]
37-
}
33+
boundingObject USE WATER_BOX
3834
locked TRUE
3935
}
4036
OilBarrel {

src/webots/nodes/WbBackground.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,11 @@ bool WbBackground::loadIrradianceTexture(int i) {
540540
float *data = stbi_loadf_from_memory(reinterpret_cast<const unsigned char *>(content.constData()), content.size(),
541541
&mIrradianceWidth, &mIrradianceHeight, &components, 0);
542542

543+
if (data == NULL) {
544+
warn(tr("Failed to load HDR texture '%1': %2.").arg(url).arg(stbi_failure_reason()));
545+
return false;
546+
}
547+
543548
const int rotate = gCoordinateSystemRotate(i);
544549
// FIXME: this texture rotation should be performed by OpenGL or in the shader to get a better performance
545550
if (rotate != 0) {

0 commit comments

Comments
 (0)