Simplify AvatarData::getSkeletonModelURLFromScript()

Co-authored-by: HifiExperiments <53453710+HifiExperiments@users.noreply.github.com>
This commit is contained in:
ksuprynowicz 2024-04-14 18:11:27 +02:00 committed by GitHub
parent 5f0f03af0a
commit 379db8b17c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2107,15 +2107,11 @@ const QUrl& AvatarData::getSkeletonModelURL() const {
}
QString AvatarData::getSkeletonModelURLFromScript() const {
if (isMyAvatar()) {
if (!isMyAvatarURLProtected()) {
return _skeletonModelURL.toString();
} else {
return QString();
}
} else {
return QString();
if (isMyAvatar() && !isMyAvatarURLProtected()) {
return _skeletonModelURL.toString();
}
return QString();
};
QByteArray AvatarData::packSkeletonData() const {