mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 20:08:56 +02:00
Simplify AvatarData::getSkeletonModelURLFromScript()
Co-authored-by: HifiExperiments <53453710+HifiExperiments@users.noreply.github.com>
This commit is contained in:
parent
5f0f03af0a
commit
379db8b17c
1 changed files with 4 additions and 8 deletions
|
@ -2107,15 +2107,11 @@ const QUrl& AvatarData::getSkeletonModelURL() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
QString AvatarData::getSkeletonModelURLFromScript() const {
|
QString AvatarData::getSkeletonModelURLFromScript() const {
|
||||||
if (isMyAvatar()) {
|
if (isMyAvatar() && !isMyAvatarURLProtected()) {
|
||||||
if (!isMyAvatarURLProtected()) {
|
return _skeletonModelURL.toString();
|
||||||
return _skeletonModelURL.toString();
|
|
||||||
} else {
|
|
||||||
return QString();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return QString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return QString();
|
||||||
};
|
};
|
||||||
|
|
||||||
QByteArray AvatarData::packSkeletonData() const {
|
QByteArray AvatarData::packSkeletonData() const {
|
||||||
|
|
Loading…
Reference in a new issue