TRying to debug the overlay notifications to show ?)

This commit is contained in:
samcake 2017-10-06 18:17:48 -07:00
parent f6ff7b3888
commit 988d8a1a62
2 changed files with 10 additions and 0 deletions

View file

@ -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) {

View file

@ -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;