mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 15:57:39 +02:00
threading fix
This commit is contained in:
parent
ba4f41b59a
commit
315baeae1f
1 changed files with 10 additions and 4 deletions
|
@ -32,8 +32,10 @@ float RayPick::getMaxDistance() const {
|
|||
return _maxDistance;
|
||||
}
|
||||
|
||||
bool RayPick::isEnabled() const {
|
||||
return _enabled;
|
||||
bool RayPick::isEnabled() const {
|
||||
return resultWithReadLock<bool>([&] {
|
||||
return _enabled;
|
||||
});
|
||||
}
|
||||
|
||||
void RayPick::setPrecisionPicking(bool precisionPicking) {
|
||||
|
@ -49,11 +51,15 @@ void RayPick::setRayPickResult(const RayPickResult& rayPickResult) {
|
|||
}
|
||||
|
||||
QVector<QUuid> RayPick::getIgnoreItems() const {
|
||||
return _ignoreItems;
|
||||
return resultWithReadLock<QVector<QUuid>>([&] {
|
||||
return _ignoreItems;
|
||||
});
|
||||
}
|
||||
|
||||
QVector<QUuid> RayPick::getIncludeItems() const {
|
||||
return _includeItems;
|
||||
return resultWithReadLock<QVector<QUuid>>([&] {
|
||||
return _includeItems;
|
||||
});
|
||||
}
|
||||
|
||||
RayPickResult RayPick::getPrevRayPickResult() const {
|
||||
|
|
Loading…
Reference in a new issue