Skip to content

Commit 8aba6ea

Browse files
author
Benjamin Délèze
authored
Fix crash IndexedLineSet (#6359)
* Fix crash indexedLineSet * changelog * Update changelog-r2023.md
1 parent 9850555 commit 8aba6ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/reference/changelog-r2023.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Released on XXX XXth, 2023.
1111
- Fixed Webots and libController version comparison not to take revisions into account ([#6315](https://github.com/cyberbotics/webots/pull/6315)).
1212
- Fixed translation, rotation and scale displayed in the Position tab of the Node viewer in the scene tree ([#6309](https://github.com/cyberbotics/webots/pull/6309)).
1313
- Replaced the [Mesh](mesh.md) bounding object of the ROSbot XL by [Boxes](box.md) ([#6326](https://github.com/cyberbotics/webots/pull/6326)).
14+
- Fixed a crash when [IndexedLineSet](indexedlineset.md) has `coord` but no `coordIndex` ([#6359](https://github.com/cyberbotics/webots/pull/6359)).
1415

1516
## Webots R2023b
1617
Released on June 28th, 2023.

src/webots/nodes/WbIndexedLineSet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void WbIndexedLineSet::recomputeBoundingSphere() const {
228228
assert(mBoundingSphere);
229229
mBoundingSphere->empty();
230230

231-
if (!coord())
231+
if (!coord() || mCoordIndex->isEmpty())
232232
return;
233233

234234
const WbMFVector3 &points = coord()->point();

0 commit comments

Comments
 (0)