transmit sendAll packet in nodeActivated signal callback

(cherry picked from commit 9f1a8290148da12849935c916b2e0a59864cb49b)
This commit is contained in:
Anthony J. Thibault 2018-04-16 16:15:35 -07:00
parent c29bf51226
commit 0a162e62b0
3 changed files with 3 additions and 8 deletions

View file

@ -5940,6 +5940,9 @@ void Application::nodeActivated(SharedNodePointer node) {
}
getMyAvatar()->markIdentityDataChanged();
getMyAvatar()->resetLastSent();
// transmit a "sendAll" packet to the AvatarMixer we just connected to.
getMyAvatar()->sendAvatarDataPacket(true);
}
}

View file

@ -3398,13 +3398,6 @@ void MyAvatar::setModelScale(float scale) {
}
}
void MyAvatar::setSessionUUID(const QUuid& sessionUUID) {
Avatar::setSessionUUID(sessionUUID);
// transmit a "sendAll" packet to the AvatarMixer we just connected to.
sendAvatarDataPacket(true);
}
SpatialParentTree* MyAvatar::getParentTree() const {
auto entityTreeRenderer = qApp->getEntities();
EntityTreePointer entityTree = entityTreeRenderer ? entityTreeRenderer->getTree() : nullptr;

View file

@ -616,7 +616,6 @@ public slots:
glm::quat getOrientationForAudio();
virtual void setModelScale(float scale) override;
virtual void setSessionUUID(const QUuid& sessionUUID) override;
signals:
void audioListenerModeChanged();