From 0ab06d624ae61ff871fc51e34b61377fdd62462e Mon Sep 17 00:00:00 2001 From: MissLiviRose Date: Thu, 26 Oct 2017 17:35:51 -0700 Subject: [PATCH] remove href property for non-owned avatar entities --- libraries/avatars-renderer/src/avatars-renderer/Avatar.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/avatars-renderer/src/avatars-renderer/Avatar.cpp b/libraries/avatars-renderer/src/avatars-renderer/Avatar.cpp index f674a2206e..258a7f37c5 100644 --- a/libraries/avatars-renderer/src/avatars-renderer/Avatar.cpp +++ b/libraries/avatars-renderer/src/avatars-renderer/Avatar.cpp @@ -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.setScript(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