mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-14 14:56:38 +02:00
TRying to debug the overlay notifications to show ?)
This commit is contained in:
parent
f6ff7b3888
commit
988d8a1a62
2 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,14 @@ QVariant Billboard3DOverlay::getProperty(const QString &property) {
|
||||||
return Planar3DOverlay::getProperty(property);
|
return Planar3DOverlay::getProperty(property);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Billboard3DOverlay::update(float duration) {
|
||||||
|
// Billboard's transform needs to constantly be adjusted if it faces the avatar
|
||||||
|
// if (isFacingAvatar()) {
|
||||||
|
notifyRenderTransformChange();
|
||||||
|
// }
|
||||||
|
Base3DOverlay::update(duration);
|
||||||
|
}
|
||||||
|
|
||||||
bool Billboard3DOverlay::applyTransformTo(Transform& transform, bool force) {
|
bool Billboard3DOverlay::applyTransformTo(Transform& transform, bool force) {
|
||||||
bool transformChanged = false;
|
bool transformChanged = false;
|
||||||
if (force || usecTimestampNow() > _transformExpiry) {
|
if (force || usecTimestampNow() > _transformExpiry) {
|
||||||
|
|
|
@ -26,6 +26,8 @@ public:
|
||||||
void setProperties(const QVariantMap& properties) override;
|
void setProperties(const QVariantMap& properties) override;
|
||||||
QVariant getProperty(const QString& property) override;
|
QVariant getProperty(const QString& property) override;
|
||||||
|
|
||||||
|
void update(float deltatime) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool applyTransformTo(Transform& transform, bool force = false) override;
|
virtual bool applyTransformTo(Transform& transform, bool force = false) override;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue