mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-14 07:27:14 +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);
|
||||
}
|
||||
|
||||
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 transformChanged = false;
|
||||
if (force || usecTimestampNow() > _transformExpiry) {
|
||||
|
|
|
@ -26,6 +26,8 @@ public:
|
|||
void setProperties(const QVariantMap& properties) override;
|
||||
QVariant getProperty(const QString& property) override;
|
||||
|
||||
void update(float deltatime) override;
|
||||
|
||||
protected:
|
||||
virtual bool applyTransformTo(Transform& transform, bool force = false) override;
|
||||
|
||||
|
|
Loading…
Reference in a new issue