Merge pull request #955 from overte-org/fix/script_avatar_url_getter

Fix access check in getSkeletonModelURLFromScript
This commit is contained in:
ksuprynowicz 2024-05-16 01:40:15 +02:00 committed by GitHub
commit 8661e8a858
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2107,7 +2107,7 @@ const QUrl& AvatarData::getSkeletonModelURL() const {
}
QString AvatarData::getSkeletonModelURLFromScript() const {
if (isMyAvatar() && !isMyAvatarURLProtected() && DependencyManager::get<NodeList>()->getThisNodeCanViewAssetURLs()) {
if (isMyAvatar() && !isMyAvatarURLProtected()) {
return _skeletonModelURL.toString();
}