Merge pull request #11702 from misslivirose/fix/remove-address

remove href property for non-owned avatar entities
This commit is contained in:
Brad Hefta-Gaub 2017-10-27 13:15:47 -07:00 committed by GitHub
commit 25b5657d58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -286,6 +286,13 @@ void Avatar::updateAvatarEntities() {
properties.setScript(noScript);
}
auto specifiedHref = properties.getHref();
if (!isMyAvatar() && !specifiedHref.isEmpty()) {
qCDebug(avatars_renderer) << "removing entity href from avatar attached entity:" << entityID << "old href:" << specifiedHref;
QString noHref;
properties.setHref(noHref);
}
// When grabbing avatar entities, they are parented to the joint moving them, then when un-grabbed
// they go back to the default parent (null uuid). When un-gripped, others saw the entity disappear.
// The thinking here is the local position was noticed as changing, but not the parentID (since it is now