MyAvatar bids for ownerhsip on grab

This commit is contained in:
Andrew Meadows 2019-01-23 21:26:10 -08:00
parent 3ec9290dca
commit 1bdcf8f0cb

View file

@ -401,6 +401,12 @@ bool Avatar::updateGrabs() {
if (success && target) {
target->addGrab(grab);
if (isMyAvatar()) {
EntityItemPointer entity = std::dynamic_pointer_cast<EntityItem>(target);
if (entity) {
entity->upgradeScriptSimulationPriority(PERSONAL_SIMULATION_PRIORITY);
}
}
// only clear this entry from the _changedAvatarGrabs if we found the entity.
changeItr.remove();
grabAddedOrRemoved = true;