mirror of
https://github.com/overte-org/overte.git
synced 2025-04-12 21:12:23 +02:00
Make visualPickResult used by Pointers a private copy
This commit is contained in:
parent
d768809fbc
commit
7f189e4d10
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ void Pointer::update(unsigned int pointerID) {
|
|||
// This only needs to be a read lock because update won't change any of the properties that can be modified from scripts
|
||||
withReadLock([&] {
|
||||
auto pickResult = getPrevPickResult();
|
||||
auto visualPickResult = getVisualPickResult(pickResult);
|
||||
auto visualPickResult = getVisualPickResult(std::make_shared<PickResult>(*pickResult.get()));
|
||||
updateVisuals(visualPickResult);
|
||||
generatePointerEvents(pointerID, visualPickResult);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue