Merge pull request #10449 from sethalves/fix-overlay-rayintersection-crash

lock in Overlays::findRayIntersectionInternal
This commit is contained in:
Seth Alves 2017-05-11 19:13:43 -07:00 committed by GitHub
commit b14b0ef403

View file

@ -408,6 +408,7 @@ RayToOverlayIntersectionResult Overlays::findRayIntersectionInternal(const PickR
const QVector<OverlayID>& overlaysToInclude,
const QVector<OverlayID>& overlaysToDiscard,
bool visibleOnly, bool collidableOnly) {
QReadLocker lock(&_lock);
float bestDistance = std::numeric_limits<float>::max();
bool bestIsFront = false;