Skip to content

Commit

Permalink
Merge pull request #6750 from cyberbotics/sync-master-65094da8c
Browse files Browse the repository at this point in the history
Merge master into develop
lukicdarkoo authored Jan 27, 2025
2 parents 8c77fed + e32465c commit a07c4a2
Showing 4 changed files with 10 additions and 12 deletions.
1 change: 1 addition & 0 deletions docs/reference/changelog-r2025.md
Original file line number Diff line number Diff line change
@@ -48,5 +48,6 @@ Released on December **th, 2023.
- 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)).
- 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)).
- Fixed a bug preventing nodes from being inserted into unconnected proto fields ([#6735](https://github.com/cyberbotics/webots/pull/6735)).
- Fixed crash when an invalid HDR image was set as a world background ([#6744](https://github.com/cyberbotics/webots/pull/6744)).
- Fixed handling of remote assets from unofficial sources ([#6585](https://github.com/cyberbotics/webots/pull/6585)).
- Fixed the QtToolTip bug, where the text in the text box is not being displayed ([#6711](https://github.com/cyberbotics/webots/pull/6711)).
8 changes: 2 additions & 6 deletions projects/robots/clearpath/heron/worlds/ocean.wbt
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
EXTERNPROTO "webots://projects/objects/backgrounds/protos/TexturedBackground.proto"
EXTERNPROTO "webots://projects/objects/backgrounds/protos/TexturedBackgroundLight.proto"
EXTERNPROTO "webots://projects/objects/obstacles/protos/OilBarrel.proto"
EXTERNPROTO "../protos/Heron.proto"
EXTERNPROTO "webots://projects/robots/clearpath/heron/protos/Heron.proto"

WorldInfo {
}
@@ -30,11 +30,7 @@ DEF WATER Fluid {
}
]
viscosity 0.01
boundingObject Transform {
children [
USE WATER_BOX
]
}
boundingObject USE WATER_BOX
locked TRUE
}
Heron {
8 changes: 2 additions & 6 deletions projects/robots/clearpath/heron/worlds/swarm.wbt
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
EXTERNPROTO "webots://projects/objects/backgrounds/protos/TexturedBackground.proto"
EXTERNPROTO "webots://projects/objects/backgrounds/protos/TexturedBackgroundLight.proto"
EXTERNPROTO "webots://projects/objects/obstacles/protos/OilBarrel.proto"
EXTERNPROTO "../protos/Heron.proto"
EXTERNPROTO "webots://projects/robots/clearpath/heron/protos/Heron.proto"

WorldInfo {
}
@@ -30,11 +30,7 @@ DEF WATER Fluid {
}
]
viscosity 0.01
boundingObject Transform {
children [
USE WATER_BOX
]
}
boundingObject USE WATER_BOX
locked TRUE
}
OilBarrel {
5 changes: 5 additions & 0 deletions src/webots/nodes/WbBackground.cpp
Original file line number Diff line number Diff line change
@@ -540,6 +540,11 @@ bool WbBackground::loadIrradianceTexture(int i) {
float *data = stbi_loadf_from_memory(reinterpret_cast<const unsigned char *>(content.constData()), content.size(),
&mIrradianceWidth, &mIrradianceHeight, &components, 0);

if (data == NULL) {
warn(tr("Failed to load HDR texture '%1': %2.").arg(url).arg(stbi_failure_reason()));
return false;
}

const int rotate = gCoordinateSystemRotate(i);
// FIXME: this texture rotation should be performed by OpenGL or in the shader to get a better performance
if (rotate != 0) {

0 comments on commit a07c4a2

Please sign in to comment.