mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
Fix for linux build
This commit is contained in:
parent
7198cd13b5
commit
70078b0e78
2 changed files with 4 additions and 4 deletions
|
@ -166,7 +166,7 @@ void TabletProxy::updateAudioBar(const double micLevel) {
|
|||
}
|
||||
|
||||
void TabletProxy::updateTabletPosition(glm::vec3 tabletPosition) {
|
||||
_position.store(tabletPosition);
|
||||
_position.set(tabletPosition);
|
||||
}
|
||||
|
||||
void TabletProxy::emitScriptEvent(QVariant msg) {
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <DependencyManager.h>
|
||||
#include <SoundCache.h>
|
||||
|
||||
#include <ThreadSafeValueCache.h>
|
||||
|
||||
class TabletProxy;
|
||||
class TabletButtonProxy;
|
||||
|
@ -110,7 +110,7 @@ public:
|
|||
*/
|
||||
Q_INVOKABLE void updateTabletPosition(glm::vec3 tabletPosition);
|
||||
|
||||
glm::vec3 getPosition() const { return _position; }
|
||||
glm::vec3 getPosition() const { return _position.get(); }
|
||||
|
||||
QString getName() const { return _name; }
|
||||
|
||||
|
@ -141,7 +141,7 @@ protected:
|
|||
std::vector<QSharedPointer<TabletButtonProxy>> _tabletButtonProxies;
|
||||
QQuickItem* _qmlTabletRoot { nullptr };
|
||||
QObject* _qmlOffscreenSurface { nullptr };
|
||||
std::atomic<glm::vec3> _position;
|
||||
ThreadSafeValueCache<glm::vec3> _position;
|
||||
};
|
||||
|
||||
/**jsdoc
|
||||
|
|
Loading…
Reference in a new issue