mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 15:53:28 +02:00
lock in Overlays::findRayIntersectionInternal
This commit is contained in:
parent
9289cd2022
commit
e1c805e76f
1 changed files with 1 additions and 0 deletions
|
@ -408,6 +408,7 @@ RayToOverlayIntersectionResult Overlays::findRayIntersectionInternal(const PickR
|
||||||
const QVector<OverlayID>& overlaysToInclude,
|
const QVector<OverlayID>& overlaysToInclude,
|
||||||
const QVector<OverlayID>& overlaysToDiscard,
|
const QVector<OverlayID>& overlaysToDiscard,
|
||||||
bool visibleOnly, bool collidableOnly) {
|
bool visibleOnly, bool collidableOnly) {
|
||||||
|
QReadLocker lock(&_lock);
|
||||||
float bestDistance = std::numeric_limits<float>::max();
|
float bestDistance = std::numeric_limits<float>::max();
|
||||||
bool bestIsFront = false;
|
bool bestIsFront = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue