Restore avatar theft functionality; banner-click to appropriate menu

This commit is contained in:
Simon Walton 2019-07-19 16:35:07 -07:00
parent d1199f9e1d
commit 63c3452cf2
2 changed files with 9 additions and 3 deletions

View file

@ -204,10 +204,8 @@ void AvatarMixerClientData::processSetTraitsMessage(ReceivedMessage& message,
if (traitType == AvatarTraits::SkeletonModelURL) {
// special handling for skeleton model URL, since we need to make sure it is in the whitelist
checkSkeletonURLAgainstWhitelist(slaveSharedData, sendingNode, packetTraitVersion);
#ifdef AVATAR_POP_CHECK
// Deferred for UX work. With no PoP check, no need to get the .fst.
_avatar->fetchAvatarFST();
#endif
}
anyTraitsChanged = true;

View file

@ -1,7 +1,15 @@
(function () {
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
this.clickDownOnEntity = function (entityID, mouseEvent) {
tablet.loadQMLSource("hifi/AvatarApp.qml");
var scripts = ScriptDiscoveryService.getRunning();
var runningSimplified =
!scripts.every(function(item){ return item.name !== "simplifiedUI.js"; });
var avatarAppQML = runningSimplified ? "hifi/simplifiedUI/avatarApp/AvatarApp.qml" : "hifi/AvatarApp.qml";
tablet.loadQMLSource(avatarAppQML);
};
}
);